FileSpec.Error Method (Error, Symbol) | |
Provide a method for handling error conditions raised during FileSpec processing. This is an event handler: it is automatically called by other methods; the developer does not normally need to call the error method, but might want to replace or amend it.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD Error(
oError AS Error,
symMethod AS SYMBOL
) AS VOID
public virtual void Error(
Error oError,
Symbol symMethod
)
Request Example
View SourceParameters
- oError
- Type: Error
An Error object describing the error condition. - symMethod
- Type: Symbol
The symbolic name of the method that originated the error.
Remarks
All methods of the FileSpec trap serious errors with a recover statement and send them to this method. Ordinary failures, such as file-not-found, do not raise error conditions; they are simply indicated through failure return values.
The standard Error() handling method fills in some more information about the errors and about the FileSpec object that originates the error and sets the status value for the server object, in its standard Error() handling method. The method passes it up the call stack by issuing a BREAK with the same Error object.
See Also