Exception: Caren::Exceptions::ServerSideError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors = [], http_code = nil) ⇒ ServerSideError

Returns a new instance of ServerSideError.



15
16
17
18
# File 'lib/caren/caren.rb', line 15

def initialize errors=[], http_code=nil
  self.errors = errors
  self.http_code = http_code
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



13
14
15
# File 'lib/caren/caren.rb', line 13

def errors
  @errors
end

#http_codeObject

Returns the value of attribute http_code.



13
14
15
# File 'lib/caren/caren.rb', line 13

def http_code
  @http_code
end