Back to index

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

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes

 argument_name
 message

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 argparse.py.


Constructor & Destructor Documentation

def argparse.ArgumentError.__init__ (   self,
  argument,
  message 
)

Definition at line 690 of file argparse.py.

00690 
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 argparse.py.

00694 
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)
00702 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 691 of file argparse.py.

Definition at line 692 of file argparse.py.


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