Exception: YouGotListed::Error
- Inherits:
-
Exception
- Object
- Exception
- YouGotListed::Error
- Defined in:
- lib/you_got_listed/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(code, error) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(code, error) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 |
# File 'lib/you_got_listed/error.rb', line 6 def initialize(code, error) @code = code @error = error super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/you_got_listed/error.rb', line 4 def code @code end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
4 5 6 |
# File 'lib/you_got_listed/error.rb', line 4 def error @error end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/you_got_listed/error.rb', line 12 def "YouGotListed Error: #{@error} (code: #{@code})" end |