Allows toggling catch blocks with -debug=NO_CATCH. To use, catch CaughtException instead of Exception in catch blocks.
This exception can never be thrown. Useful for a temporary or aliased catch block exception type.
Returns string mixin for adding a chained exception
Stringify an exception chain.
Extracts the stack trace from an exception's toString, as an array of lines.
Mixin to declare a new exception type with the given name. Automatically generates common constructors.
Test helper. Asserts that a op b, and includes the values in the error message.
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/.
Exception formatting