Exceptions Class Fling OS
Implements the lowest-level kernel exception handling.
Inheritance Hierarchy

System Object
  Kernel Exceptions

Namespace: Kernel
Assembly: Kernel (in Kernel.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

[PluggedClassAttribute]
public static class Exceptions

The Exceptions type exposes the following members.

Constructors

  NameDescription
Private methodStatic memberExceptions
Top
Methods

  NameDescription
Public methodStatic memberAddExceptionHandlerInfo
Adds a new Exception Handler Info structure to the stack and sets it as the current handler.
Public methodStatic memberHandleEndFinally
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.
Public methodStatic memberHandleException
Handles the current pending exception.
Public methodStatic memberHandleLeave
Handles cleanly leaving a critical section (i.e. try or catch block)
Public methodStatic memberRethrow
Rethrows the current exception.
Public methodStatic memberThrow
Throws the specified exception.
Public methodStatic memberThrow_DivideByZeroException
Throws a divide by zero exception.
Public methodStatic memberThrow_DoubleFaultException
Throws a double fault exception.
Public methodStatic memberThrow_InvalidOpCodeException
Throws an invalid op code exception.
Public methodStatic memberThrow_OverflowException
Throws an overflow exception.
Public methodStatic memberThrow_PageFaultException
Throws a page fault exception.
Public methodStatic memberThrow_StackException
Throws a stack exception.
Public methodStatic memberThrowFromPtr
Throws the specified exception. Implementation used is eaxctly the same as Throw (exact same plug used) just allows another way to throw an exception.
Top
Fields

  NameDescription
Public fieldStatic memberCurrentException
The current exception - null as soon as the exception has been handled.
Public fieldStatic memberCurrentHandlerPtr
Pointer to the current Exception Handler Info (a pointer to the struct on the stack).
Public fieldStatic memberPendingException
Whether the current exception is pending being handled.
Public fieldStatic memberThrow_PanicMessage
The message to display when the Throw method panics.
Public fieldStatic memberUnhandledException_PanicMessage
The message to display when the kernel panics.
Top
See Also