MEng.Exception is not a class that you create instances of. They are
only available with a Catch block. Within any catch block there will be
a magic object called $Exception that represents the last exception
caught. You can use that object to get information about the exception.
Check([In] MEng.Enum ToCheck) Returns MEng.Boolean;
CheckGreater([In] MEng.Enum ToCheck) Returns MEng.Boolean;
Allows you to check whether the exception thrown is a particular
exception. Since all exceptions are enumerated values, this method
accepts the base MEng.Enum class, allowing you to pass any
enumerated value.
You can also check whether the exception is of a particular
enumerated type and greater than a particular value of that type.
The reason for this is that exception enumerations are sometimes
arranged in order of increasing severity so you want to see if it is
of a particular enumerated type and, if so, if it's beyond some
level of severity. If it's not of the same type as the passed
ToCheck value, the return will be False.
GetClass() Returns MEng.String;
When an exception is thrown, the class path of the thrown type is
stored and you can obtain it via this method. This is commonly used
for logging purposes.
GetErrorNum() Returns MEng.Card4;
This method will return the ordinal value of the error thrown.
Since the actual error type can be of any enumerated type, the
actual type cannot be returned. But you can can get the ordinal
value for logging.
GetErrorText() Returns MEng.String;
This method will return the text of the error enumeration value
that was thrown, mostly for logging or display to the user.
GetLine() Returns MEng.Card4;
This method will return the line within the throwing class where
the exception was thrown. This is commonly used for logging or error
display.