Exception: Skit::Serialization::Error

Inherits:
Error
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/skit/serialization/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "", path: Path.new) ⇒ Error

Returns a new instance of Error.



13
14
15
16
# File 'lib/skit/serialization/errors.rb', line 13

def initialize(message = "", path: Path.new)
  @path = T.let(path, Path)
  super(path.empty? ? message : "#{message} (at #{path})")
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



10
11
12
# File 'lib/skit/serialization/errors.rb', line 10

def path
  @path
end