IError
- Namespace
- ZCore
INTERFACE IError
This interface should be implemented by all objects that might have errors. The methods of this interface allow to inspect the error description, error code (...) of said object.
Properties
Error
PROPERTY Error : BOOL
Property Value
- BOOL
Methods
ErrorId
METHOD ErrorId () : UDINT
Returns the error code of the first error source for this object. The method recursively goes down the error stack until the initial source of error of this object can be found. For performance reasons, the error stack is not cleared when the error state is reset. So this method should always used in conjunction with Error.
Returns
- UDINT
ErrorMessage
METHOD ErrorMessage () : ZString
Returns the error description of the first error source for this object. The method recursively goes down the error stack until the initial source of error of this object can be found. For performance reasons, the error stack is not cleared when the error state is reset. So this method should always used in conjunction with Error.
Returns
ErrorSource
METHOD ErrorSource () : IError
This method returns the direct error source of this object. This method can then be used to retrieve the actual error source by using the method of the returned IError.
Returns
TraceErrorStack
METHOD TraceErrorStack (
[input] trace : IErrorTrace)
This method is used internally when recording an error trace.
Inputs
trace
IErrorTrace