Class: NxtSchema::Node::Errors::SchemaError
- Inherits:
-
String
- Object
- String
- NxtSchema::Node::Errors::SchemaError
- Defined in:
- lib/nxt_schema/node/errors/schema_error.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node:, message:) ⇒ SchemaError
constructor
A new instance of SchemaError.
Constructor Details
#initialize(node:, message:) ⇒ SchemaError
Returns a new instance of SchemaError.
5 6 7 8 |
# File 'lib/nxt_schema/node/errors/schema_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/schema_error.rb', line 10 def node @node end |