Exception: Skit::Serialization::Error
- Extended by:
- T::Sig
- Defined in:
- lib/skit/serialization/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(message = "", path: Path.new) ⇒ Error
constructor
A new instance of Error.
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( = "", path: Path.new) @path = T.let(path, Path) super(path.empty? ? : "#{message} (at #{path})") end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
10 11 12 |
# File 'lib/skit/serialization/errors.rb', line 10 def path @path end |