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.
65 66 67 68 |
# File 'lib/logbrew.rb', line 65 def initialize(code, ) @code = code super("#{code}: #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
63 64 65 |
# File 'lib/logbrew.rb', line 63 def code @code end |