SQLSelect.Error Method | |
Provide a method for handling error conditions raised during database 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:
VO
Assembly:
VOSQLClasses (in VOSQLClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD Error(
oError
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual Error(
Usual oError = default
)
Request Example
View SourceParameters
- oError (Optional)
- Type: Usual
An Error object describing the error condition.
Return Value
Type:
UsualRemarks
All methods of the SQLSelect trap serious errors with a recover statement and send them to this method. Ordinary failures, such as locking conflicts or record-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 SQLSelect object that originates the error, sets the status value for the server object, and passes the problem to its client, if there is one, in its standard Error() handling method. If there is no client who wants to deal with the problem, the method passes it up the call stack by issuing a BREAK with the same Error object.
Tip |
---|
If an error comes in while one is being handled, the Error() method immediately breaks. |
See Also