Exception Handling Module Documentation
This page documents the MExceptionHandler module's public members:
MExceptionHandler.EExceptionType
Constants used to identify an exception. To obtain the exception name you should
use the GetExceptionName function, while to obtain
an exception's description you should use the GetExceptionDescription
function.
The EExceptionType enumeration lists the following values:
|
Constant
|
Description
|
|
eExceptionType_AccessViolation
|
Access Violation.
|
|
eExceptionType_DataTypeMisalignment
|
Data Type Misalignment.
|
|
eExceptionType_Breakpoint
|
Breakpoint.
|
|
eExceptionType_SingleStep
|
Single Step.
|
|
eExceptionType_ArrayBoundsExceeded
|
Array Bounds Exceeded.
|
|
eExceptionType_FaultDenormalOperand
|
Float Denormal Operand.
|
|
eExceptionType_FaultDivideByZero
|
Divide By Zero.
|
|
eExceptionType_FaultInexactResult
|
Floating Point Inexact Result.
|
|
eExceptionType_FaultInvalidOperation
|
Invalid Operation.
|
|
eExceptionType_FaultOverflow
|
Float Overflow.
|
|
eExceptionType_FaultStackCheck
|
Float Stack Check.
|
|
eExceptionType_FaultUnderflow
|
Float Underflow.
|
|
eExceptionType_IntegerDivisionByZero
|
Integer Divide By Zero.
|
|
eExceptionType_IntegerOverflow
|
Integer Overflow.
|
|
eExceptionType_PriviledgedInstruction
|
Privileged Instruction.
|
|
eExceptionType_InPageError
|
In Page Error.
|
|
eExceptionType_IllegalInstruction
|
Illegal Instruction.
|
|
eExceptionType_NoncontinuableException
|
Non Continuable Exception.
|
|
eExceptionType_StackOverflow
|
Stack Overflow.
|
|
eExceptionType_InvalidDisposition
|
Invalid Disposition.
|
|
eExceptionType_GuardPageViolation
|
Guard Page Violation.
|
|
eExceptionType_InvalidHandle
|
Invalid Handle.
|
|
eExceptionType_ControlCExit
|
Control-C Exit.
|
Back To Top
MExceptionHandler.ExceptionHandler
This function is called whenever an unhandled exception occurs. It raises
an error so that it can be trapped with an On Error statement
in the procedure that caused the exception.
ExceptionHandler ExceptionPtrs
The ExceptionHandler function syntax has these parts:
|
Part
|
Description
|
|
ExceptionPtrs
|
A value of type EXCEPTION_POINTERS.
|
Back To Top
MExceptionHandler.GetExceptionDescription
Returns a string containing the description of the specified exception.
GetExceptionDescription ExceptionType
The GetExceptionDescription function syntax has these parts:
|
Part
|
Description
|
|
ExceptionType
|
Required. A constant identifying the exception's type according to
EExceptionType constants.
|
Back To Top
MExceptionHandler.GetExceptionName
Returns a string containing the name of the specified exception.
GetExceptionName ExceptionType
The GetExceptionName function syntax has these parts:
|
Part
|
Description
|
|
ExceptionType
|
Required. A constant identifying the exception's type according to EExceptionType
constants.
|
Back To Top
MExceptionHandler.InstallExceptionHandler
Installs the custom exception filter.
InstallExceptionHandler
Back To Top
MExceptionHandler.RaiseAnException
Raises an exception of the specified type.
RaiseAnException ExceptionType
The RaiseAnException function syntax has these parts:
|
Part
|
Description
|
|
ExceptionType
|
Required. A constant identifying the exception's type according to EExceptionType
constants.
|
Back To Top
MExceptionHandler.UninstallExceptionHandler
Uninstalls the custom exception filter and restores the default one.
UninstallExceptionHandler
See also
Back To Top
|