Exception: SimpleCommandDispatcher::Errors::InvalidClassConstantError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/simple_command_dispatcher/errors/invalid_class_constant_error.rb

Overview

This error is raised when a command class constant is not found or invalid.

Instance Method Summary collapse

Constructor Details

#initialize(constantized_class_string, error_message) ⇒ InvalidClassConstantError

Initializes a new InvalidClassConstantError

Parameters:

  • constantized_class_string (String)

    the class string that failed to constantize

  • error_message (String)

    the underlying error message



11
12
13
# File 'lib/simple_command_dispatcher/errors/invalid_class_constant_error.rb', line 11

def initialize(constantized_class_string, error_message)
  super("\"#{constantized_class_string}\" is not a valid class constant. Error message: \"#{error_message}\".")
end