Exception: CognitoIdp::Error
- Inherits:
-
StandardError
- Object
- StandardError
- CognitoIdp::Error
- Defined in:
- lib/cognito_idp/error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_description ⇒ Object
readonly
Returns the value of attribute error_description.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
Instance Method Summary collapse
-
#initialize(error:, error_description: nil, http_status: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error:, error_description: nil, http_status: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 12 |
# File 'lib/cognito_idp/error.rb', line 7 def initialize(error:, error_description: nil, http_status: nil) @error = error @error_description = error_description @http_status = http_status super() end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
5 6 7 |
# File 'lib/cognito_idp/error.rb', line 5 def error @error end |
#error_description ⇒ Object (readonly)
Returns the value of attribute error_description.
5 6 7 |
# File 'lib/cognito_idp/error.rb', line 5 def error_description @error_description end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
5 6 7 |
# File 'lib/cognito_idp/error.rb', line 5 def http_status @http_status end |