Exception: LogBrew::SdkError
- Inherits:
-
StandardError
- Object
- StandardError
- LogBrew::SdkError
- Defined in:
- lib/logbrew.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ SdkError
constructor
A new instance of SdkError.
Constructor Details
#initialize(code, message) ⇒ SdkError
Returns a new instance of SdkError.
39 40 41 42 |
# File 'lib/logbrew.rb', line 39 def initialize(code, ) @code = code super("#{code}: #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
37 38 39 |
# File 'lib/logbrew.rb', line 37 def code @code end |