Implements the lowest-level kernel exception handling.
Inheritance Hierarchy
Kernel Exceptions
Namespace: Kernel
Assembly: Kernel (in Kernel.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The Exceptions type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() ![]() | Exceptions |
Methods
Name | Description | |
---|---|---|
![]() ![]() | AddExceptionHandlerInfo |
Adds a new Exception Handler Info structure to the stack and sets
it as the current handler.
|
![]() ![]() | HandleEndFinally |
Handles cleanly leaving a "finally" critical section (i.e. finally block).
This may result in an exception being passed to the next handler if it has not been caught & handled yet.
|
![]() ![]() | HandleException |
Handles the current pending exception.
|
![]() ![]() | HandleLeave |
Handles cleanly leaving a critical section (i.e. try or catch block)
|
![]() ![]() | Rethrow |
Rethrows the current exception.
|
![]() ![]() | Throw |
Throws the specified exception.
|
![]() ![]() | Throw_DivideByZeroException |
Throws a divide by zero exception.
|
![]() ![]() | Throw_DoubleFaultException |
Throws a double fault exception.
|
![]() ![]() | Throw_InvalidOpCodeException |
Throws an invalid op code exception.
|
![]() ![]() | Throw_OverflowException |
Throws an overflow exception.
|
![]() ![]() | Throw_PageFaultException |
Throws a page fault exception.
|
![]() ![]() | Throw_StackException |
Throws a stack exception.
|
![]() ![]() | ThrowFromPtr |
Throws the specified exception. Implementation used is eaxctly the
same as Throw (exact same plug used) just allows another way to
throw an exception.
|
Fields
Name | Description | |
---|---|---|
![]() ![]() | CurrentException |
The current exception - null as soon as the exception has been handled.
|
![]() ![]() | CurrentHandlerPtr |
Pointer to the current Exception Handler Info (a pointer to the
struct on the stack).
|
![]() ![]() | PendingException |
Whether the current exception is pending being handled.
|
![]() ![]() | Throw_PanicMessage |
The message to display when the Throw method panics.
|
![]() ![]() | UnhandledException_PanicMessage |
The message to display when the kernel panics.
|
See Also