Exception: CSVPlusPlus::Error::ModifierSyntaxError

Inherits:
SyntaxError
  • Object
show all
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

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

Parameters:



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.

Returns:

  • (::String)


22
23
24
# File 'lib/csv_plus_plus/error/modifier_syntax_error.rb', line 22

def error_message
  @wrapped_error.error_message
end