Exception: Rhc::Rest::ValidationException
- Inherits:
-
ClientErrorException
- Object
- RuntimeError
- BaseException
- ClientErrorException
- Rhc::Rest::ValidationException
- Defined in:
- lib/rhc-rest/exceptions/exceptions.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 BaseException
Instance Method Summary collapse
-
#initialize(message, field = nil) ⇒ ValidationException
constructor
A new instance of ValidationException.
Constructor Details
#initialize(message, field = nil) ⇒ ValidationException
Returns a new instance of ValidationException.
46 47 48 49 |
# File 'lib/rhc-rest/exceptions/exceptions.rb', line 46 def initialize(, field=nil) super() @field = field end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
45 46 47 |
# File 'lib/rhc-rest/exceptions/exceptions.rb', line 45 def field @field end |