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.
45 46 47 48 49 |
# File 'lib/logbrew.rb', line 45 def initialize(code, , retryable: false) @code = code @retryable = retryable super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
43 44 45 |
# File 'lib/logbrew.rb', line 43 def code @code end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
43 44 45 |
# File 'lib/logbrew.rb', line 43 def retryable @retryable end |
Class Method Details
.network(message) ⇒ Object
51 52 53 |
# File 'lib/logbrew.rb', line 51 def self.network() new("network_failure", , retryable: true) end |