Exception: Oso::Polar::DuplicateClassAliasError
- Inherits:
-
PolarRuntimeError
- Object
- RuntimeError
- Error
- Error
- PolarRuntimeError
- Oso::Polar::DuplicateClassAliasError
- Defined in:
- lib/oso/polar/errors.rb
Overview
rubocop:disable Style/Documentation
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(name:, old:, new:) ⇒ DuplicateClassAliasError
constructor
A new instance of DuplicateClassAliasError.
Constructor Details
#initialize(name:, old:, new:) ⇒ DuplicateClassAliasError
Returns a new instance of DuplicateClassAliasError.
72 73 74 |
# File 'lib/oso/polar/errors.rb', line 72 def initialize(name:, old:, new:) super("Attempted to alias #{new} as '#{name}', but #{old} already has that alias.") end |