Exception: CSVPlusPlus::Error::ModifierSyntaxError
- Inherits:
-
SyntaxError
- Object
- StandardError
- Error
- SyntaxError
- CSVPlusPlus::Error::ModifierSyntaxError
- Defined in:
- lib/csv_plus_plus/error/modifier_syntax_error.rb
Overview
An Error that wraps a ModifierValidationError with a Runtime.
Instance Method Summary collapse
-
#error_message ⇒ ::String
Calls
wrapped_error.error_message. -
#initialize(runtime, wrapped_error:) ⇒ ModifierSyntaxError
constructor
You must supply either a
choicesormessage.
Methods inherited from SyntaxError
#to_s, #to_trace, #to_verbose_trace
Constructor Details
#initialize(runtime, wrapped_error:) ⇒ ModifierSyntaxError
You must supply either a choices or message
13 14 15 16 17 |
# File 'lib/csv_plus_plus/error/modifier_syntax_error.rb', line 13 def initialize(runtime, wrapped_error:) @wrapped_error = wrapped_error super(runtime, wrapped_error:) end |
Instance Method Details
#error_message ⇒ ::String
Calls wrapped_error.error_message.
22 23 24 |
# File 'lib/csv_plus_plus/error/modifier_syntax_error.rb', line 22 def @wrapped_error. end |