Exception: LogBrew::TransportError
- Inherits:
-
StandardError
- Object
- StandardError
- LogBrew::TransportError
- Defined in:
- lib/logbrew.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code, message, retryable: false) ⇒ TransportError
constructor
A new instance of TransportError.
Constructor Details
#initialize(code, message, retryable: false) ⇒ TransportError
Returns a new instance of TransportError.
29 30 31 32 33 |
# File 'lib/logbrew.rb', line 29 def initialize(code, , retryable: false) @code = code @retryable = retryable super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
27 28 29 |
# File 'lib/logbrew.rb', line 27 def code @code end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
27 28 29 |
# File 'lib/logbrew.rb', line 27 def retryable @retryable end |
Class Method Details
.network(message) ⇒ Object
35 36 37 |
# File 'lib/logbrew.rb', line 35 def self.network() new("network_failure", , retryable: true) end |