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.
77 78 79 80 |
# File 'lib/rhc/rest.rb', line 77 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.
76 77 78 |
# File 'lib/rhc/rest.rb', line 76 def field @field end |