Platforms to show: All Mac Windows Linux Cross-Platform
WinExceptionMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Windows | MBS Win Plugin | 8.7 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
This class was made to intercept crashes in a Xojo application.
Whenever the application crashes, this class will fire its event so you have a chance to report that crash to your user and maybe save a crash report.
Do not try to save data as this could overwrite good data with bad data. Remember your application already crashed. Maybe because of data corruption!
Only one instance can exist in your application.
- event GotException() as Integer
- 5 properties
- property ExceptionAddress as Integer
- property ExceptionCode as Integer
- property ExceptionFlags as Integer
- property ExceptionIsNonContinuable as Boolean
- property ExceptionName as String
- method Close
- 24 constants
Constants
Constant | Value | Description |
---|---|---|
kContinueCode | 2 |
One of the constants you can use for the GotException event return value.
This one is not recommented as it can raise the same exception again or crash your application. |
kExceptionAccessViolation | &hC0000005 |
One of the constants for exception codes.
The thread attempts to read from or write to a virtual address for which it does not have access. |
kExceptionArrayBoundsExceeded | &hC000008C |
One of the constants for exception codes.
The thread attempts to access an array element that is out of bounds, and the underlying hardware supports bounds checking. |
kExceptionBreakPoint | &h80000003 |
One of the constants for exception codes.
A breakpoint is encountered. |
kExceptionDataTypeMisalignment | &h80000002 |
One of the constants for exception codes.
The thread attempts to read or write data that is misaligned on hardware that does not provide alignment. For example, 16-bit values must be aligned on 2-byte boundaries, 32-bit values on 4-byte boundaries, and so on. |
kExceptionFloatDenormalOperand | &hC000008D |
One of the constants for exception codes.
One of the operands in a floating point operation is denormal. A denormal value is one that is too small to represent as a standard floating point value. |
kExceptionFloatDivideByZero | &hC000008E |
One of the constants for exception codes.
The thread attempts to divide a floating point value by a floating point divisor of 0 (zero). |
kExceptionFloatInexactResult | &hC000008F |
One of the constants for exception codes.
The result of a floating point operation cannot be represented exactly as a decimal fraction. |
kExceptionFloatInvalidOperation | &hC0000090 |
One of the constants for exception codes.
A floating point exception that is not included in this list. |
kExceptionFloatOverflow | &hC0000091 |
One of the constants for exception codes.
The exponent of a floating point operation is greater than the magnitude allowed by the corresponding type. |
kExceptionFloatStackCheck | &hC0000092 |
One of the constants for exception codes.
The stack has overflowed or underflowed, because of a floating point operation. |
kExceptionFloatUnderflow | &hC0000093 |
One of the constants for exception codes.
The exponent of a floating point operation is less than the magnitude allowed by the corresponding type. |
kExceptionIllegalInstruction | &hC000001D |
One of the constants for exception codes.
The thread tries to execute an invalid instruction. |
kExceptionInPageError | &hC0000006 |
One of the constants for exception codes.
The thread tries to access a page that is not present, and the system is unable to load the page. For example, this exception might occur if a network connection is lost while running a program over a network. |
kExceptionIntegerDivideByZero | &hC0000094 |
One of the constants for exception codes.
The thread attempts to divide an integer value by an integer divisor of 0 (zero). |
kExceptionIntegerOverflow | &hC0000095 |
One of the constants for exception codes.
The result of an integer operation causes a carry out of the most significant bit of the result. |
kExceptionInvalidDisposition | &hC0000026 |
One of the constants for exception codes.
An exception handler returns an invalid disposition to the exception dispatcher. Programmers using a high-level language such as C should never encounter this exception. |
kExceptionNonContinueableException | &hC0000025 |
One of the constants for exception codes.
The thread attempts to continue execution after a non-continuable exception occurs. |
kExceptionPrivilegedInstruction | &hC0000096 |
One of the constants for exception codes.
The thread attempts to execute an instruction with an operation that is not allowed in the current computer mode. |
kExceptionSingleStep | &h80000004 |
One of the constants for exception codes.
A trace trap or other single instruction mechanism signals that one instruction is executed. |
kExceptionStackOverflow | &hC00000FD |
One of the constants for exception codes.
The thread uses up its stack. |
kExecuteHandler | 1 |
One of the constants you can use for the GotException event return value.
Windows will execute the default handler for this exception. This can show a Windows error dialog. |
kExecuteHandlerNoDialog | 4 |
One of the constants you can use for the GotException event return value.
Windows will execute the default handler for this exception, but not show a dialog. |
kNextHandler | 3 |
One of the constants you can use for the GotException event return value.
Windows will call the next exception handler. |
This class has no sub classes.
Some examples using this class:
The items on this page are in the following plugins: MBS Win Plugin.
WindowsWMIMBS - WinFileDialogExceptionMBS