Class: Caren::ValidationError

Inherits:
NotAcceptableError show all
Defined in:
lib/caren/error.rb

Instance Attribute Summary

Attributes inherited from Error

#attributes, #category, #message

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from Caren::Error

Instance Method Details

#fieldObject



31
32
33
# File 'lib/caren/error.rb', line 31

def field
  attributes[:on]
end

#to_sObject



35
36
37
# File 'lib/caren/error.rb', line 35

def to_s
  "`#{field}` #{message}"
end