Exception: DataBindings::FailedValidation

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/data_bindings/util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, errors, original) ⇒ FailedValidation

Returns a new instance of FailedValidation.



4
5
6
7
# File 'lib/data_bindings/util.rb', line 4

def initialize(message, errors, original)
  @errors, @original = errors, original
  super message
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



3
4
5
# File 'lib/data_bindings/util.rb', line 3

def errors
  @errors
end

#originalObject (readonly)

Returns the value of attribute original.



3
4
5
# File 'lib/data_bindings/util.rb', line 3

def original
  @original
end