method

new

new(*args, p2 = {})
public

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