Exception: OpenUSD::ParseError
- Defined in:
- lib/openusd/errors.rb
Overview
Raised when USDA text cannot be parsed.
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(message, file: nil, line: nil, column: nil) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message, file: nil, line: nil, column: nil) ⇒ ParseError
Returns a new instance of ParseError.
11 12 13 14 15 16 |
# File 'lib/openusd/errors.rb', line 11 def initialize(, file: nil, line: nil, column: nil) @file = file @line = line @column = column super(location ? "#{location}: #{}" : ) end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
9 10 11 |
# File 'lib/openusd/errors.rb', line 9 def column @column end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
9 10 11 |
# File 'lib/openusd/errors.rb', line 9 def file @file end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
9 10 11 |
# File 'lib/openusd/errors.rb', line 9 def line @line end |