Exception: Rodbot::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Rodbot::Error
- Defined in:
- lib/rodbot/error.rb
Instance Method Summary collapse
- #detailed_message ⇒ Object
-
#initialize(message, details = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, details = nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/rodbot/error.rb', line 5 def initialize(, details=nil) @details = details super() end |
Instance Method Details
#detailed_message ⇒ Object
10 11 12 |
# File 'lib/rodbot/error.rb', line 10 def [, @details].compact.join(': ') end |