method

new

new(*args)
public

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