Exception: Halcyon::Exceptions::Base

Inherits:
StandardError
  • Object
show all
Defined in:
lib/halcyon/exceptions.rb

Overview

– Base Halcyon Exception ++

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, body) ⇒ Base

Returns a new instance of Base.



23
24
25
26
27
# File 'lib/halcyon/exceptions.rb', line 23

def initialize(status, body)
  @status = status
  @body = body
  super "[#{@status}] #{@body}"
end

Instance Attribute Details

#bodyObject

:nodoc:



22
23
24
# File 'lib/halcyon/exceptions.rb', line 22

def body
  @body
end

#statusObject

:nodoc:



22
23
24
# File 'lib/halcyon/exceptions.rb', line 22

def status
  @status
end