Exception: Momento::Error::InvalidArgumentError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Momento::Error::InvalidArgumentError
- Includes:
- Momento::Error
- Defined in:
- lib/momento/error/types.rb
Overview
Invalid argument passed to Momento client
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Attributes included from Momento::Error
#cause, #context, #transport_details
Instance Method Summary collapse
-
#error_code ⇒ Symbol
A Momento-specific code for the type of error.
-
#initialize(details = "") ⇒ InvalidArgumentError
constructor
A new instance of InvalidArgumentError.
-
#message ⇒ String
The error message.
Methods included from Momento::Error
Constructor Details
#initialize(details = "") ⇒ InvalidArgumentError
Returns a new instance of InvalidArgumentError.
129 130 131 132 |
# File 'lib/momento/error/types.rb', line 129 def initialize(details = "") @details = details super() end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
139 140 141 |
# File 'lib/momento/error/types.rb', line 139 def details @details end |
Instance Method Details
#error_code ⇒ Symbol
A Momento-specific code for the type of error.
135 136 137 |
# File 'lib/momento/error/types.rb', line 135 def error_code :INVALID_ARGUMENT_ERROR end |
#message ⇒ String
The error message.
142 143 144 |
# File 'lib/momento/error/types.rb', line 142 def "Invalid argument passed to Momento client: #{details}" end |