Exception: Oso::Polar::DuplicateClassAliasError

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(name:, old:, new:) ⇒ DuplicateClassAliasError

Returns a new instance of DuplicateClassAliasError.

Parameters:

  • name (String)
  • old (Class)
  • new (Class)


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