The exception module defines all system-level exceptions and provides a
mechanism to alter system-level error handling.
- class OutOfMemoryException : Exception ¶#
-
Thrown on an out of memory error.
- class PlatformException : Exception ¶#
-
Base class for operating system or library exceptions.
- class AssertException : Exception ¶#
-
Thrown on an assert error.
- class ArrayBoundsException : Exception ¶#
-
Thrown on an array bounds error.
- class FinalizeException : Exception ¶#
-
Thrown on finalize error.
- class SwitchException : Exception ¶#
-
Thrown on a switch error.
- class TextException : Exception ¶#
-
Represents a text processing error.
- class UnicodeException : TextException ¶#
-
Thrown on a unicode conversion error.
- class ThreadException : PlatformException ¶#
-
Base class for thread exceptions.
- class FiberException : ThreadException ¶#
-
Base class for fiber exceptions.
- class SyncException : PlatformException ¶#
-
Base class for synchronization exceptions.
- class IOException : 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 VfsException : IOException ¶#
-
The basic exception thrown by the tango.io.vfs package.
- class ClusterException : IOException ¶#
-
The basic exception thrown by the tango.io.cluster package.
- class SocketException : IOException ¶#
-
Base class for socket exceptions.
- class HostException : IOException ¶#
-
Base class for exception thrown by an InternetHost.
- class AddressException : IOException ¶#
-
Base class for exceptiond thrown by an Address.
- class SocketAcceptException : SocketException ¶#
-
Thrown when a socket failed to accept an incoming connection.
- class ProcessException : PlatformException ¶#
-
Thrown on a process error.
- class RegexException : TextException ¶#
-
Base class for regluar expression exceptions.
- class LocaleException : TextException ¶#
-
Base class for locale exceptions.
- class XmlException : TextException ¶#
-
Base class for XML exceptions.
- class RegistryException : Exception ¶#
-
RegistryException is thrown when the NetworkRegistry encounters a
problem during proxy registration, or when it sees an unregistered
guid.
- class IllegalArgumentException : Exception ¶#
-
Thrown when an illegal argument is encountered.
- class IllegalElementException : 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 : Exception ¶#
-
Thrown on past-the-end errors by iterators and containers.
- class CorruptedIteratorException : NoSuchElementException ¶#
-
Thrown when a corrupt iterator is detected.
- void setAssertHandler(assertHandlerType h) ¶#
-
Overrides the default assert hander with a user-supplied version.
h | The new assert handler. Set to null to use the default handler. |
- void onAssertError(char[] file, size_t line) [extern(C)] ¶#
-
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.
file | The name of the file that signaled this error. |
line | The line number on which this error occurred. |
- void onAssertErrorMsg(char[] file, size_t line, char[] msg) [extern(C)] ¶#
-
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.
file | The name of the file that signaled this error. |
line | The line number on which this error occurred. |
msg | An error message supplied by the user. |
- void onArrayBoundsError(char[] file, size_t line) [extern(C)] ¶#
-
A callback for array bounds errors in D. An ArrayBoundsException will be
thrown.
file | The name of the file that signaled this error. |
line | The line number on which this error occurred. |
ArrayBoundsException.
- void onFinalizeError(ClassInfo info, Exception ex) [extern(C)] ¶#
-
A callback for finalize errors in D. A FinalizeException will be thrown.
e | The exception thrown during finalization. |
FinalizeException.
- void onOutOfMemoryError() [extern(C)] ¶#
-
A callback for out of memory errors in D. An OutOfMemoryException will be
thrown.
OutOfMemoryException.
- void onSwitchError(char[] file, size_t line) [extern(C)] ¶#
-
A callback for switch errors in D. A SwitchException will be thrown.
file | The name of the file that signaled this error. |
line | The line number on which this error occurred. |
SwitchException.
- void onUnicodeError(char[] msg, size_t idx) [extern(C)] ¶#
-
A callback for unicode errors in D. A UnicodeException will be thrown.
msg | Information about the error. |
idx | String index where this error was detected. |
UnicodeException.