Exception: Rightnow::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Rightnow::Error
- Defined in:
- lib/rightnow/error.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(msg, code = nil) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(msg, code = nil) ⇒ Error
Returns a new instance of Error.
3 4 5 6 |
# File 'lib/rightnow/error.rb', line 3 def initialize msg, code = nil super msg @code = code end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/rightnow/error.rb', line 8 def to_s super + (@code.nil? ? '' : " (#{@code})") end |