Exception: RubstApi::RequestValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rubst_api/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors, body: nil) ⇒ RequestValidationError

Returns a new instance of RequestValidationError.



33
34
35
36
# File 'lib/rubst_api/errors.rb', line 33

def initialize(errors, body: nil)
  @errors, @body = errors, body
  super("Request validation failed")
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



32
33
34
# File 'lib/rubst_api/errors.rb', line 32

def body
  @body
end

#errorsObject (readonly)

Returns the value of attribute errors.



32
33
34
# File 'lib/rubst_api/errors.rb', line 32

def errors
  @errors
end