Exception: Caren::Exceptions::ServerSideError
- Inherits:
-
StandardError
- Object
- StandardError
- StandardError
- Caren::Exceptions::ServerSideError
- Defined in:
- lib/caren/caren.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#http_code ⇒ Object
Returns the value of attribute http_code.
Instance Method Summary collapse
-
#initialize(errors = [], http_code = nil) ⇒ ServerSideError
constructor
A new instance of ServerSideError.
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
#errors ⇒ Object
Returns the value of attribute errors.
13 14 15 |
# File 'lib/caren/caren.rb', line 13 def errors @errors end |
#http_code ⇒ Object
Returns the value of attribute http_code.
13 14 15 |
# File 'lib/caren/caren.rb', line 13 def http_code @http_code end |