Exception: Rhc::Rest::ValidationException

Inherits:
ClientErrorException show all
Defined in:
lib/rhc-rest/exceptions/exceptions.rb

Overview

Exceptions thrown in case of an HTTP 422 is received.

Instance Attribute Summary collapse

Attributes inherited from BaseException

#code

Instance Method Summary collapse

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(message, field=nil)
  super(message)
  @field = field
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



45
46
47
# File 'lib/rhc-rest/exceptions/exceptions.rb', line 45

def field
  @field
end