Exception: Mural::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Mural::Error
- Defined in:
- lib/mural.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(message, code:, details: nil) ⇒ Error
constructor
A new instance of Error.
- #inspect ⇒ Object
Constructor Details
#initialize(message, code:, details: nil) ⇒ Error
Returns a new instance of Error.
15 16 17 18 19 20 |
# File 'lib/mural.rb', line 15 def initialize(, code:, details: nil) @code = code @details = details super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
13 14 15 |
# File 'lib/mural.rb', line 13 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
13 14 15 |
# File 'lib/mural.rb', line 13 def details @details end |
Instance Method Details
#inspect ⇒ Object
22 23 24 25 |
# File 'lib/mural.rb', line 22 def inspect "#<Mural::Error message=#{message.inspect} code=#{code.inspect} " \ "details=#{details.inspect}>" end |