Skip to content

Message not part of the JException on assertion error #101

Closed as duplicate

Description

Looking at the source code:

    /**
     *
     * @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}
     */
    public static void assertFn(boolean condition, String message) throws Throwable {
        if(!condition) {
            throw new JException("D3141", -1, "$assert() statement failed");
//                message: message || "$assert() statement failed"
        }
    }

Message is lost here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions