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.
20 21 22 23 |
# File 'lib/logbrew.rb', line 20 def initialize(code, ) @code = code super("#{code}: #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
18 19 20 |
# File 'lib/logbrew.rb', line 18 def code @code end |