Exception: CognitoIdp::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cognito_idp/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(build_message)
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



5
6
7
# File 'lib/cognito_idp/error.rb', line 5

def error
  @error
end

#error_descriptionObject (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_statusObject (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