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, code = nil) ⇒ BadRequest

Returns a new instance of BadRequest.



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

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



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

def code
  @code
end

#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