Exception: RHC::Rest::ValidationException
- Inherits:
-
ClientErrorException
- Object
- RuntimeError
- Exception
- ClientErrorException
- RHC::Rest::ValidationException
- Defined in:
- lib/rhc/rest.rb
Overview
Exceptions thrown in case of an HTTP 422 is received.
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Attributes inherited from Exception
Instance Method Summary collapse
-
#initialize(message, field = nil, error_code = 1) ⇒ ValidationException
constructor
A new instance of ValidationException.
Constructor Details
#initialize(message, field = nil, error_code = 1) ⇒ ValidationException
Returns a new instance of ValidationException.
76 77 78 79 |
# File 'lib/rhc/rest.rb', line 76 def initialize(, field=nil, error_code=1) super(, error_code) @field = field end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
75 76 77 |
# File 'lib/rhc/rest.rb', line 75 def field @field end |