Exception: Evoasm::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Evoasm::Error
- Defined in:
- lib/evoasm/error.rb
Overview
Represents an low-level error (originating from the backend library).
Instance Attribute Summary collapse
-
#code ⇒ Symbol
readonly
The error code.
-
#filename ⇒ String
readonly
The filename of the source file this error occurred in.
-
#line ⇒ Integer
readonly
The line number at which this error occurred.
-
#type ⇒ Symbol
readonly
The error type.
Instance Attribute Details
#code ⇒ Symbol (readonly)
Returns the error code
12 13 14 |
# File 'lib/evoasm/error.rb', line 12 def code @code end |
#filename ⇒ String (readonly)
Returns the filename of the source file this error occurred in
15 16 17 |
# File 'lib/evoasm/error.rb', line 15 def filename @filename end |
#line ⇒ Integer (readonly)
Returns the line number at which this error occurred
6 7 8 |
# File 'lib/evoasm/error.rb', line 6 def line @line end |
#type ⇒ Symbol (readonly)
Returns the error type
9 10 11 |
# File 'lib/evoasm/error.rb', line 9 def type @type end |