View source code
Display the source code in core/exception.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Module core.exception
The exception module defines all system-level exceptions and provides a mechanism to alter system-level error handling.
Functions
Name | Description |
---|---|
assertHandler
|
Gets/sets assert hander. null means the default handler is used.
|
onAssertError
|
A callback for assert errors in D. The user-supplied assert handler will
be called if one has been supplied, otherwise an AssertError will be
thrown.
|
onAssertErrorMsg
|
A callback for assert errors in D. The user-supplied assert handler will
be called if one has been supplied, otherwise an AssertError will be
thrown.
|
onFinalizeError
|
A callback for finalize errors in D. A FinalizeError will be thrown.
|
onHiddenFuncError
|
A callback for hidden function errors in D. A HiddenFuncError will be
thrown.
Deprecated.
This feature is not longer part of the language.
|
onInvalidMemoryOperationError
|
A callback for invalid memory operations in D. An
InvalidMemoryOperationError will be thrown.
|
onOutOfMemoryError
|
A callback for out of memory errors in D. An OutOfMemoryError will be
thrown.
|
onRangeError
|
A callback for array bounds errors in D. A RangeError will be thrown.
|
onSwitchError
|
A callback for switch errors in D. A SwitchError will be thrown.
|
onUnicodeError
|
A callback for unicode errors in D. A UnicodeException will be thrown.
|
onUnittestErrorMsg
|
A callback for unittest errors in D. The user-supplied unittest handler will be called if one has been supplied, otherwise the error will be written to stderr. |
setAssertHandler
|
Overrides the default assert hander with a user-supplied version.
Deprecated.
Please use assertHandler instead.
|
_d_arraybounds
|
These functions must be defined for any D program linked against this library. |
_d_array_bounds
|
These functions must be defined for any D program linked against this library. |
_d_assert
|
These functions must be defined for any D program linked against this library. |
_d_assertm
|
These functions must be defined for any D program linked against this library. |
_d_assert_msg
|
These functions must be defined for any D program linked against this library. |
_d_switch_error
|
These functions must be defined for any D program linked against this library. |
_d_unittest
|
These functions must be defined for any D program linked against this library. |
_d_unittestm
|
These functions must be defined for any D program linked against this library. |
_d_unittest_msg
|
These functions must be defined for any D program linked against this library. |
Classes
Name | Description |
---|---|
AssertError
|
Thrown on an assert error. |
FinalizeError
|
Thrown on finalize error. |
HiddenFuncError
|
Thrown on hidden function error. Deprecated. This feature is not longer part of the language. |
InvalidMemoryOperationError
|
Thrown on an invalid memory operation. |
OutOfMemoryError
|
Thrown on an out of memory error. |
RangeError
|
Thrown on a range error. |
SwitchError
|
Thrown on a switch error. |
UnicodeException
|
Thrown on a unicode conversion error. |
Aliases
Name | Type | Description |
---|---|---|
AssertHandler
|
nothrow void function(string, ulong, string)
|
Gets/sets assert hander. null means the default handler is used. |
Authors
Sean Kelly and Jonathan M Davis
License
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)