public static RootCasException withCode(final String code) {
        return new RootCasException(code, StringUtils.EMPTY);
    }
With code.

@param code the code
@return the root cas exception
api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/RootCasException.java