ae.utils.exception

Exception formatting

Members

Aliases

CaughtException
alias CaughtException = NoException

Allows toggling catch blocks with -debug=NO_CATCH. To use, catch CaughtException instead of Exception in catch blocks.

CaughtException
alias CaughtException = Exception
Undocumented in source.
assertEqual
alias assertEqual = assertOp!"=="
Undocumented in source.

Classes

NoException
class NoException

This exception can never be thrown. Useful for a temporary or aliased catch block exception type.

Functions

exceptionContext
string exceptionContext(string messageExpr, string name)

Returns string mixin for adding a chained exception

formatException
string formatException(Throwable e)
Undocumented in source. Be warned that the author may not have intended to support it.
getStackTrace
string[] getStackTrace(string until, string since)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixin templates

DeclareException
mixintemplate DeclareException(string NAME, BASE = Exception)
Undocumented in source.

Templates

assertOp
template assertOp(string op)
Undocumented in source.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>