Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

%Exception.General

class %Exception.General extends %Exception.AbstractException

Simple exception class that can be throw in user code. You can throw this with code similar to:
  Throw ##class(%Exception.General).%New(name,numericCode,location,data)
  
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.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab