donotuse class %Exception.General extends %Exception.AbstractExceptionSimple exception class that can be throw in user code. You can throw this with code similar to:
The name is a string name for the exception, the numericCode is a numeric error code. If the location field is blank and $$$envCallerErrorInfo is defined then the system will attempt to fill in this location where the exception was thrown from automatically. You can pass additional exception data in the data argument.
Method Inventory (Including Private)
Methods (Including Private)
private method %OnNew(pName As %String = "", pCode As %String = "", pLocation As %String = "", pData As %String = "", pInnerException As %Exception.AbstractException = $$$NULLOREF) as %Status [ Language = objectscript ]
private method OnAsStatus() as %Status [ Language = objectscript ]
Inherited description: Override this method to provide a custom conversion of an exception to a status.