Exception: OpenUSD::ParseError

Inherits:
Error
  • Object
show all
Defined in:
lib/openusd/errors.rb

Overview

Raised when USDA text cannot be parsed.

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, file: nil, line: nil, column: nil)
  @file = file
  @line = line
  @column = column
  super(location ? "#{location}: #{message}" : message)
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



9
10
11
# File 'lib/openusd/errors.rb', line 9

def column
  @column
end

#fileObject (readonly)

Returns the value of attribute file.



9
10
11
# File 'lib/openusd/errors.rb', line 9

def file
  @file
end

#lineObject (readonly)

Returns the value of attribute line.



9
10
11
# File 'lib/openusd/errors.rb', line 9

def line
  @line
end