Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
argparse.ArgumentError Class Reference
Inheritance diagram for argparse.ArgumentError:
Inheritance graph
Collaboration diagram for argparse.ArgumentError:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes


Detailed Description

An error from creating or using an argument (optional or positional).

The string value of this exception is the message, augmented with
information about the argument that caused it.

Definition at line 683 of file

Constructor & Destructor Documentation

def argparse.ArgumentError.__init__ (   self,

Definition at line 690 of file

00691     def __init__(self, argument, message):
00692         self.argument_name = _get_action_name(argument)
00693         self.message = message

Here is the caller graph for this function:

Member Function Documentation

Definition at line 694 of file

00695     def __str__(self):
00696         if self.argument_name is None:
00697             format = '%(message)s'
00698         else:
00699             format = 'argument %(argument_name)s: %(message)s'
00700         return format % dict(message=self.message,
00701                              argument_name=self.argument_name)

Here is the caller graph for this function:

Member Data Documentation

Definition at line 691 of file

Definition at line 692 of file

The documentation for this class was generated from the following file: