Exception: Taro::ValidationError
- Inherits:
-
RuntimeError
- Object
- StandardError
- Error
- RuntimeError
- Taro::ValidationError
- Defined in:
- lib/taro/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(message, object, origin) ⇒ ValidationError
constructor
A new instance of ValidationError.
Methods inherited from Error
Constructor Details
#initialize(message, object, origin) ⇒ ValidationError
Returns a new instance of ValidationError.
15 16 17 18 19 20 21 |
# File 'lib/taro/errors.rb', line 15 def initialize(, object, origin) raise 'Abstract class' if instance_of?(Taro::ValidationError) super() @object = object @origin = origin end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
13 14 15 |
# File 'lib/taro/errors.rb', line 13 def object @object end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
13 14 15 |
# File 'lib/taro/errors.rb', line 13 def origin @origin end |