Exception: Oso::Polar::UnexpectedPolarTypeError

Inherits:
PolarRuntimeError show all
Defined in:
lib/oso/polar/errors.rb

Overview

rubocop:disable Style/Documentation

Instance Attribute Summary

Attributes inherited from Error

#stack_trace

Instance Method Summary collapse

Constructor Details

#initialize(tag) ⇒ UnexpectedPolarTypeError

Returns a new instance of UnexpectedPolarTypeError.



43
44
45
46
47
48
49
# File 'lib/oso/polar/errors.rb', line 43

def initialize(tag)
  if tag == 'Expression'
    super(UNEXPECTED_EXPRESSION_MESSAGE)
  else
    super(tag)
  end
end