Exception: Toast::Errors::BadRequest

Inherits:
StandardError
  • Object
show all
Defined in:
lib/toast/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, source_location) ⇒ BadRequest

Returns a new instance of BadRequest.



28
29
30
31
# File 'lib/toast/errors.rb', line 28

def initialize message, source_location
  @source_location = source_location
  super message
end

Instance Attribute Details

#source_locationObject

Returns the value of attribute source_location.



26
27
28
# File 'lib/toast/errors.rb', line 26

def source_location
  @source_location
end