Exception: Toys::ArgParsingError

Inherits:
StandardError
  • Object
show all
Defined in:
core-docs/toys/errors.rb

Overview

Defined in the toys-core gem

An exception indicating problems parsing arguments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ ArgParsingError

Create an ArgParsingError given a set of error messages

Parameters:



28
29
30
# File 'core-docs/toys/errors.rb', line 28

def initialize(errors)
  # Source available in the toys-core gem
end

Instance Attribute Details

#usage_errorsArray<Toys::ArgParser::UsageError> (readonly)

The individual usage error messages.

Returns:



36
37
38
# File 'core-docs/toys/errors.rb', line 36

def usage_errors
  @usage_errors
end