mecca.lib.exception

When things go wrong....

Public Imports

core.exception
public import core.exception : AssertError, RangeError;
std.exception
public import std.exception : ErrnoException;

Members

Aliases

DBG_ASSERT
alias DBG_ASSERT = ASSERT
Undocumented in source.

Classes

RangeErrorWithReason
class RangeErrorWithReason
Undocumented in source.

Functions

ABORT
void ABORT(string msg, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
ASSERT
void ASSERT(bool cond, T args)
Undocumented in source. Be warned that the author may not have intended to support it.
DBG_ASSERT
void DBG_ASSERT(bool cond, T args)
Undocumented in source. Be warned that the author may not have intended to support it.
DIE
void DIE(string msg, string file, size_t line, bool doAbort)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEQ
void assertEQ(L lhs, R rhs, string msg)

Assert that two values are equal.

assertGE
void assertGE(L lhs, R rhs, string msg)

Assert that lhs is greater or equals to rhs.

assertGT
void assertGT(L lhs, R rhs, string msg)

Assert that lhs is greater than rhs.

assertLE
void assertLE(L lhs, R rhs, string msg)

Assert that lhs is lesser or equal to rhs.

assertLT
void assertLT(L lhs, R rhs, string msg)

Assert that lhs is lesser than rhs.

assertNE
void assertNE(L lhs, R rhs, string msg)

Assert that two values are not equal.

assertOp
void assertOp(L lhs, R rhs, string msg)

Assert on a generic operation

assertThrows
void assertThrows(E expr)
Undocumented in source. Be warned that the author may not have intended to support it.
enforceFmt
void enforceFmt(bool cond, string fmt, A args)
Undocumented in source. Be warned that the author may not have intended to support it.
enforceNGC
void enforceNGC(bool value, string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
errnoCall
int errnoCall(Parameters!F args)
Undocumented in source. Be warned that the author may not have intended to support it.
errnoEnforceNGC
void errnoEnforceNGC(bool value, string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
extractStack
void*[] extractStack(void*[] callstack, size_t skip)

Extract the stack backtrace.

mkEx
T mkEx(A args)
Undocumented in source. Be warned that the author may not have intended to support it.
mkExFmt
T mkExFmt(string fmt, A args)
Undocumented in source. Be warned that the author may not have intended to support it.
mkExFmt
T mkExFmt(A args)
Undocumented in source. Be warned that the author may not have intended to support it.
mkExLine
T mkExLine(string file, size_t line, A args)
Undocumented in source. Be warned that the author may not have intended to support it.
rangeError
RangeErrorWithReason rangeError(K key, string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
setEx
Throwable setEx(Throwable ex, bool setTraceback)
Undocumented in source. Be warned that the author may not have intended to support it.
switchCurrExcBuf
void switchCurrExcBuf(ExcBuf* newCurrentExcBuf)
Undocumented in source. Be warned that the author may not have intended to support it.
traceDisableCompileTimeInstrumentation
void traceDisableCompileTimeInstrumentation()
Undocumented in source.

Mixin templates

ExceptionBody
mixintemplate ExceptionBody(string msg)
Undocumented in source.
ExceptionBody
mixintemplate ExceptionBody()
Undocumented in source.

Properties

assertRaised
bool assertRaised [@property getter]

Returns true if an assert was thrown

Static variables

_currExcBuf
ExcBuf* _currExcBuf;
Undocumented in source.
_tlsExcBuf
ExcBuf _tlsExcBuf;
Undocumented in source.

Structs

DefaultTraceInfoABI
struct DefaultTraceInfoABI
Undocumented in source.
ExcBuf
struct ExcBuf

Static buffer for storing no GC exceptions

Variables

blowUpHandler
void function(string msg, string file, size_t line) blowUpHandler;
Undocumented in source.

Meta