passport-wsfed-saml2
Version:
SAML2 Protocol and WS-Fed library
14 lines (11 loc) • 459 B
JavaScript
function SamlAssertionParserError (message, detail, status) {
var err = Error.call(this, message);
err.name = 'SamlAssertionParserError';
err.message = message || 'Error parsing SAML Assertion';
err.detail = detail;
err.status = status || 400;
return err;
}
SamlAssertionParserError.prototype = Object.create(Error.prototype);
SamlAssertionParserError.prototype.constructor = SamlAssertionParserError;
module.exports = SamlAssertionParserError;