Exception: SignIn::Errors::StandardError

Inherits:
StandardError
  • Object
show all
Defined in:
app/services/sign_in/errors.rb

Direct Known Subclasses

AccessDeniedError, AccessTokenExpiredError, AccessTokenMalformedJWTError, AccessTokenSignatureMismatchError, AntiCSRFMismatchError, AssertionExpiredError, AssertionMalformedJWTError, AssertionSignatureMismatchError, AttributeMismatchError, ClientAssertionAttributesError, ClientAssertionExpiredError, ClientAssertionInvalidError, ClientAssertionMalformedJWTError, ClientAssertionSignatureMismatchError, ClientAssertionTypeInvalidError, CodeChallengeMalformedError, CodeChallengeMethodMismatchError, CodeChallengeMismatchError, CodeInvalidError, CodeVerifierMalformedError, CredentialLockedError, CredentialMissingAttributeError, CredentialProviderError, GrantTypeValueError, InvalidAccessTokenAttributeError, InvalidAcrError, InvalidAudienceError, InvalidClientConfigError, InvalidCredentialLevelError, InvalidSSORequestError, InvalidScope, InvalidServiceAccountScope, InvalidTokenError, InvalidTokenTypeError, InvalidTypeError, LogoutAuthorizationError, MHVMissingMPIRecordError, MPILockedAccountError, MPIMalformedAccountError, MPIUserCreationFailedError, MalformedParamsError, MissingParamsError, RefreshNonceMismatchError, RefreshTokenDecryptionError, RefreshTokenMalformedError, RefreshVersionMismatchError, ServiceAccountAssertionAttributesError, ServiceAccountConfigNotFound, SessionNotAuthorizedError, SessionNotFoundError, StateCodeInvalidError, StatePayloadError, StatePayloadMalformedJWTError, StatePayloadSignatureMismatchError, TermsOfUseNotAcceptedError, TokenTheftDetectedError, UnverifiedCredentialBlockedError, UserAccountNotFoundError, UserAttributesMalformedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, code: Constants::ErrorCode::INVALID_REQUEST) ⇒ StandardError

Returns a new instance of StandardError.



8
9
10
11
# File 'app/services/sign_in/errors.rb', line 8

def initialize(message:, code: Constants::ErrorCode::INVALID_REQUEST)
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'app/services/sign_in/errors.rb', line 6

def code
  @code
end