class EventRouter::Errors::UnsupportedOptionError
Public Class Methods
new(message: nil, config:, option:, supported_options:)
click to toggle source
Calls superclass method
# File lib/event_router/errors/unsupported_option_error.rb, line 8 def initialize(message: nil, config:, option:, supported_options:) @config = config @option = option @supported_options = supported_options super(message || self.message) end
Public Instance Methods
message()
click to toggle source
# File lib/event_router/errors/unsupported_option_error.rb, line 16 def message "Unsupported #{@option} for #{@config} configuration. Currently supports #{@supported_options}. " \ 'Please consider registering the adapter before referencing it.' end