Exception: RHC::Rest::ValidationException

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

Overview

Exceptions thrown in case of an HTTP 422 is received.

Instance Attribute Summary collapse

Attributes inherited from Exception

#code

Instance Method Summary collapse

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

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



76
77
78
# File 'lib/rhc/rest.rb', line 76

def field
  @field
end