Exception: FoucaultHttp::MonadException
- Inherits:
-
StandardError
- Object
- StandardError
- FoucaultHttp::MonadException
- Defined in:
- lib/foucault_http/monad_exception.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
Instance Method Summary collapse
-
#initialize(result:, code: nil, retryable: true) ⇒ MonadException
constructor
A new instance of MonadException.
Constructor Details
#initialize(result:, code: nil, retryable: true) ⇒ MonadException
Returns a new instance of MonadException.
7 8 9 10 11 12 |
# File 'lib/foucault_http/monad_exception.rb', line 7 def initialize(result: , code: nil, retryable: true) self.error_code = code @retryable = retryable @result = result super(nil) end |
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code.
5 6 7 |
# File 'lib/foucault_http/monad_exception.rb', line 5 def error_code @error_code end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
5 6 7 |
# File 'lib/foucault_http/monad_exception.rb', line 5 def result @result end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
5 6 7 |
# File 'lib/foucault_http/monad_exception.rb', line 5 def retryable @retryable end |