The exception module defines all system-level exceptions and provides a mechanism to alter system-level error handling.

License:
BSD style: see license.txt

Authors:
Sean Kelly, Kris Bell

  • class OutOfMemoryException : object.Exception;
  • Thrown on an out of memory error.

  • class PlatformException : object.Exception;
  • Base class for operating system or library exceptions.

  • class AssertException : object.Exception;
  • Thrown on an assert error.

  • class ArrayBoundsException : object.Exception;
  • Thrown on an array bounds error.

  • class FinalizeException : object.Exception;
  • Thrown on finalize error.

  • class SwitchException : object.Exception;
  • Thrown on a switch error.

  • class TextException : object.Exception;
  • Represents a text processing error.

  • class UnicodeException : tango.core.Exception.TextException;
  • Thrown on a unicode conversion error.

  • class ThreadException : tango.core.Exception.PlatformException;
  • Base class for thread exceptions.

  • class FiberException : tango.core.Exception.ThreadException;
  • Base class for fiber exceptions.

  • class SyncException : tango.core.Exception.PlatformException;
  • Base class for synchronization exceptions.

  • class IOException : tango.core.Exception.PlatformException;
  • The basic exception thrown by the tango.io package. One should try to ensure that all Tango exceptions related to IO are derived from this one.

  • class SocketException : tango.core.Exception.IOException;
  • Base class for socket exceptions.

  • class HostException : tango.core.Exception.IOException;
  • Base class for exception thrown by an InternetHost.

  • class AddressException : tango.core.Exception.IOException;
  • Base class for exceptiond thrown by an Address.

  • class SocketAcceptException : tango.core.Exception.SocketException;
  • Thrown when a socket failed to accept an incoming connection.

  • class ProcessException : tango.core.Exception.PlatformException;
  • Thrown on a process error.

  • class RegexException : tango.core.Exception.TextException;
  • Base class for regluar expression exceptions.

  • class LocaleException : tango.core.Exception.TextException;
  • Base class for locale exceptions.

  • class XmlException : tango.core.Exception.TextException;
  • Base class for XML exceptions.

  • class RegistryException : object.Exception;
  • RegistryException is thrown when the NetworkRegistry encounters a problem during proxy registration, or when it sees an unregistered guid.

  • class IllegalArgumentException : object.Exception;
  • Thrown when an illegal argument is encountered.

  • class IllegalElementException : tango.core.Exception.IllegalArgumentException;
  • IllegalElementException is thrown by Collection methods that add (or replace) elements (and/or keys) when their arguments are null or do not pass screeners.

  • class NoSuchElementException : object.Exception;
  • Thrown on past-the-end errors by iterators and containers.

  • class CorruptedIteratorException : tango.core.Exception.NoSuchElementException;
  • Thrown when a corrupt iterator is detected.

  • void setAssertHandler (void(* h)(char[] file, uint line, char[] msg = null));
  • Overrides the default assert hander with a user-supplied version.

    Params:
    void(* h)(char[] file, uint line, char[] msg = null) The new assert handler. Set to null to use the default handler.

  • void onAssertError (char[] file, uint line);
  • A callback for assert errors in D. The user-supplied assert handler will be called if one has been supplied, otherwise an AssertException will be thrown.

    Params:
    char[] file The name of the file that signaled this error.
    uint line The line number on which this error occurred.

  • void onAssertErrorMsg (char[] file, uint line, char[] msg);
  • A callback for assert errors in D. The user-supplied assert handler will be called if one has been supplied, otherwise an AssertException will be thrown.

    Params:
    char[] file The name of the file that signaled this error.
    uint line The line number on which this error occurred.
    char[] msg An error message supplied by the user.

  • void onArrayBoundsError (char[] file, uint line);
  • A callback for array bounds errors in D. An ArrayBoundsException will be thrown.

    Params:
    char[] file The name of the file that signaled this error.
    uint line The line number on which this error occurred.

    Throws:
    ArrayBoundsException.

  • void onFinalizeError (ClassInfo info, Exception ex);
  • A callback for finalize errors in D. A FinalizeException will be thrown.

    Params:
    e The exception thrown during finalization.

    Throws:
    FinalizeException.

  • void onOutOfMemoryError ();
  • A callback for out of memory errors in D. An OutOfMemoryException will be thrown.

    Throws:
    OutOfMemoryException.

  • void onSwitchError (char[] file, uint line);
  • A callback for switch errors in D. A SwitchException will be thrown.

    Params:
    char[] file The name of the file that signaled this error.
    uint line The line number on which this error occurred.

    Throws:
    SwitchException.

  • void onUnicodeError (char[] msg, uint idx);
  • A callback for unicode errors in D. A UnicodeException will be thrown.

    Params:
    char[] msg Information about the error.
    uint idx String index where this error was detected.

    Throws:
    UnicodeException.

    Copyright (C) 2005-2006 Sean Kelly, Kris Bell. All rights reserved. :: page rendered by CandyDoc