Exception: Odin::Transform::Expr::ExprSyntaxError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/odin/transform/transform_expr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ExprSyntaxError

Returns a new instance of ExprSyntaxError.



22
23
24
25
# File 'lib/odin/transform/transform_expr.rb', line 22

def initialize(message)
  @code = "T015"
  super("Invalid %expr formula: #{message}")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



20
21
22
# File 'lib/odin/transform/transform_expr.rb', line 20

def code
  @code
end