Class: NxtSchema::Node::Errors::ValidationError
- Inherits:
-
String
- Object
- String
- NxtSchema::Node::Errors::ValidationError
- Defined in:
- lib/nxt_schema/node/errors/validation_error.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node:, message:) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(node:, message:) ⇒ ValidationError
Returns a new instance of ValidationError.
5 6 7 8 |
# File 'lib/nxt_schema/node/errors/validation_error.rb', line 5 def initialize(node:, message:) super() @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
10 11 12 |
# File 'lib/nxt_schema/node/errors/validation_error.rb', line 10 def node @node end |