The exception module defines all system-level exceptions and provides a mechanism to alter system-level error handling.
Thrown on a range error.
Thrown on an assert error.
Thrown on finalize error.
Thrown on an out of memory error.
Thrown on an invalid memory operation.
An invalid memory operation error occurs in circumstances when the garbage collector has detected an operation it cannot reliably handle. The default D GC is not re-entrant, so this can happen due to allocations done from within finalizers called during a garbage collection cycle.
Thrown on a switch error.
Thrown on a unicode conversion error.
Gets/sets assert hander. null means the default handler is used.
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.
string file
| The name of the file that signaled this error. |
size_t line
| The line number on which this error occurred. |
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.
string file
| The name of the file that signaled this error. |
size_t line
| The line number on which this error occurred. |
string msg
| An error message supplied by the user. |
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.
string file
| The name of the file that signaled this error. |
size_t line
| The line number on which this error occurred. |
string msg
| An error message supplied by the user. |
A callback for array bounds errors in D. A RangeError
will be thrown.
string file
| The name of the file that signaled this error. |
size_t line
| The line number on which this error occurred. |
RangeError
.A callback for finalize errors in D. A FinalizeError
will be thrown.
TypeInfo info
| The TypeInfo instance for the object that failed finalization. |
Throwable e
| The exception thrown during finalization. |
string file
| The name of the file that signaled this error. |
size_t line
| The line number on which this error occurred. |
FinalizeError
.A callback for out of memory errors in D. An OutOfMemoryError
will be thrown.
OutOfMemoryError
.A callback for invalid memory operations in D. An InvalidMemoryOperationError
will be thrown.
InvalidMemoryOperationError
.A callback for unicode errors in D. A UnicodeException
will be thrown.
string msg
| Information about the error. |
size_t idx
| String index where this error was detected. |
string file
| The name of the file that signaled this error. |
size_t line
| The line number on which this error occurred. |
UnicodeException
.These functions must be defined for any D program linked against this library.
Function calls to these are generated by the compiler and inserted into the object code.
These functions must be defined for any D program linked against this library.
Function calls to these are generated by the compiler and inserted into the object code.
These functions must be defined for any D program linked against this library.
Function calls to these are generated by the compiler and inserted into the object code.
These functions must be defined for any D program linked against this library.
Function calls to these are generated by the compiler and inserted into the object code.
These functions must be defined for any D program linked against this library.
Function calls to these are generated by the compiler and inserted into the object code.
These functions must be defined for any D program linked against this library.
Function calls to these are generated by the compiler and inserted into the object code.
These functions must be defined for any D program linked against this library.
Function calls to these are generated by the compiler and inserted into the object code.
These functions must be defined for any D program linked against this library.
Function calls to these are generated by the compiler and inserted into the object code.
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/core_exception.html