Class

ParseError

Inheritance
< RuntimeError < StandardError < Exception < Object

Base class of exceptions from OptionParser.

Constants

Name   Description
Reason = 'parse error'.freeze Reason which caused the error.

Attributes

Name Visibility R/W Description
args public R
reason public W

Methods

Class

Visibility Signature
public new (*args)

Instance

Visibility Signature
public inspect ()
public message ()
public reason ()
public recover (argv)
public set_option (opt, eq)
public to_s ()

Class Method Detail

new(*args)

Instance Method Detail

inspect()

message()

Default stringizing method to emit standard error message.

reason()

Returns error reason. Override this for I18N.

recover(argv)

Pushes back erred argument(s) to argv.

set_option(opt, eq)

to_s()

Alias for message