Exception: Toys::ArgParsingError
- Inherits:
-
StandardError
- Object
- StandardError
- Toys::ArgParsingError
- Defined in:
- lib/toys/errors.rb
Overview
An exception indicating problems parsing arguments.
Instance Attribute Summary collapse
-
#usage_errors ⇒ Array<Toys::ArgParser::UsageError>
readonly
The individual usage error messages.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ArgParsingError
constructor
Create an ArgParsingError given a set of error messages.
Constructor Details
#initialize(errors) ⇒ ArgParsingError
Create an ArgParsingError given a set of error messages
24 25 26 27 |
# File 'lib/toys/errors.rb', line 24 def initialize(errors) @usage_errors = errors super(errors.join("\n")) end |
Instance Attribute Details
#usage_errors ⇒ Array<Toys::ArgParser::UsageError> (readonly)
The individual usage error messages.
33 34 35 |
# File 'lib/toys/errors.rb', line 33 def usage_errors @usage_errors end |