Exception: Sinja::HttpError

Inherits:
SinjaError
  • Object
show all
Defined in:
lib/sinja/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_status, message = nil) ⇒ HttpError

Returns a new instance of HttpError.



14
15
16
17
# File 'lib/sinja/errors.rb', line 14

def initialize(http_status, message=nil)
  @http_status = http_status
  super(message)
end

Instance Attribute Details

#http_statusObject (readonly)

Returns the value of attribute http_status.



12
13
14
# File 'lib/sinja/errors.rb', line 12

def http_status
  @http_status
end