Exception: EventRouter::Errors::RequiredOptionError
- Inherits:
-
EventRouter::Error
- Object
- StandardError
- EventRouter::Error
- EventRouter::Errors::RequiredOptionError
- Defined in:
- lib/event_router/errors/required_option_error.rb
Instance Method Summary collapse
-
#initialize(message: nil, options:, adapter:) ⇒ RequiredOptionError
constructor
A new instance of RequiredOptionError.
- #message ⇒ Object
Constructor Details
#initialize(message: nil, options:, adapter:) ⇒ RequiredOptionError
Returns a new instance of RequiredOptionError.
8 9 10 11 12 13 |
# File 'lib/event_router/errors/required_option_error.rb', line 8 def initialize(message: nil, options:, adapter:) @options = @adapter = adapter super( || self.) end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/event_router/errors/required_option_error.rb', line 15 def "#{@options} are required for #{@adapter} adapter." end |