Exception: NameError

Inherits:
StandardError show all

Direct Known Subclasses

NoMethodError

Defined Under Namespace

Classes: message

Instance Method Summary (collapse)

Methods inherited from Exception

#==, #backtrace, exception, #exception, #inspect, log_exceptions, log_exceptions=, #message, #set_backtrace

Constructor Details

- (Object) new(msg[, name])

Construct a new NameError exception. If given the name parameter may subsequently be examined using the NameError.name method.

Instance Method Details

- (String?) name

Return the name associated with this NameError exception.

Returns:

- (String) to_s

Produce a nicely-formatted string representing the NameError.

Returns: