Exception: Sinatra::Rabbit::Validator::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sinatra/rabbit/validator.rb

Direct Known Subclasses

InvalidValue, RequiredParameter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ ValidationError


23
24
25
26
# File 'lib/sinatra/rabbit/validator.rb', line 23

def initialize(code, message)
  @http_status_code = code
  super(message)
end

Instance Attribute Details

#http_status_codeObject (readonly)

Returns the value of attribute http_status_code


22
23
24
# File 'lib/sinatra/rabbit/validator.rb', line 22

def http_status_code
  @http_status_code
end