Application :: applicationError - Get last application error
The property returns the last application error set by the application. Since the application is responsible for maintaining the application error, the application has to reset application errors, whenever required.
The application error is automatically reset, when a context function has been called. In order to avoid abnormal termination of context functions, application errors set should be cleared before returning from a context function. Otherwise, the context function terminates with error and the transaction (when being started) will roll back changes.
The internal error number identifies an error within an error class. Errors might be documented in the error class within the resource database.
Implementation overview
- Get last application error
Application :: applicationError (  ) - Set application error
Application :: applicationError ( iError )
Implementation details
-
Get last application error
int32 Application  :: applicationError (  )
The function returns the last application error set by the application.
to list
-
Set application error
int32 Application  :: applicationError ( int32 iError )
The function sets the application error to the value passed in iError . The function does not set additional error information as class or location or error variables to be displayed in an error message. In order to generate a documented error, one may call setApplicationError() .
The application error might be reset by calling resetApplicationError() .
- iError
- Error number
The internal error number identifies an error within an error class. Errors might be documented in the error class within the resource database.
to list
- iError
- Error number