Class: NxtSchema::Node::Errors::SchemaError

Inherits:
String
  • Object
show all
Defined in:
lib/nxt_schema/node/errors/schema_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message)
  @node = node
end

Instance Attribute Details

#nodeObject (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