function assert(condition, message) {
        if(!condition) {
            throw {
                code: "D3141",
                stack: (new Error()).stack,
                message: message || "$assert() statement failed"
            };
        }

        return undefined;
    }
@param {boolean} condition - the condition to evaluate
@param {string} [message] - the message to attach to the error
@throws custom error with code 'D3137'
@returns {undefined}