Exception: CIMI::Model::BadRequest
- Inherits:
-
StandardError
- Object
- StandardError
- CIMI::Model::BadRequest
- Defined in:
- lib/cimi/models/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg = "") ⇒ BadRequest
constructor
A new instance of BadRequest.
Constructor Details
#initialize(msg = "") ⇒ BadRequest
Returns a new instance of BadRequest.
30 31 32 33 |
# File 'lib/cimi/models/errors.rb', line 30 def initialize(msg="") super(msg) self.code=400 end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
29 30 31 |
# File 'lib/cimi/models/errors.rb', line 29 def code @code end |