Exception: ModelTimeline::ConfigurationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/model_timeline/configuration_error.rb

Overview

Error raised when there’s an issue with ModelTimeline configuration. This error is typically raised when attempting to define multiple timeline configurations for the same model and timeline entry class combination.

Examples:

Raising the error

raise ModelTimeline::ConfigurationError.new

With custom message

raise ModelTimeline::ConfigurationError.new("Custom error message")

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Multiple definitions of the same configuration found. ' \ 'Please ensure that each configuration is unique.') ⇒ ModelTimeline::ConfigurationError

Initialize a new ConfigurationError

Parameters:

  • message (String) (defaults to: 'Multiple definitions of the same configuration found. ' \ 'Please ensure that each configuration is unique.')

    Custom error message



19
20
21
22
# File 'lib/model_timeline/configuration_error.rb', line 19

def initialize(message = 'Multiple definitions of the same configuration found. ' \
                         'Please ensure that each configuration is unique.')
  super
end