Exception: Rodbot::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rodbot/error.rb

Instance Method Summary collapse

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(message, details=nil)
  @details = details
  super(message)
end

Instance Method Details

#detailed_messageObject



10
11
12
# File 'lib/rodbot/error.rb', line 10

def detailed_message
  [message, @details].compact.join(': ')
end