CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
argparse.ArgumentError Class Reference
Inheritance diagram for argparse.ArgumentError:
Exception

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 700 of file argparse.py.

Constructor & Destructor Documentation

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

Definition at line 707 of file argparse.py.

708  def __init__(self, argument, message):
710  self.message = message
def _get_action_name
Definition: argparse.py:687

Member Function Documentation

def argparse.ArgumentError.__str__ (   self)

Definition at line 711 of file argparse.py.

References argparse.ArgumentError.argument_name, python.rootplot.argparse.ArgumentError.argument_name, python.multivaluedict.dict, rrapi.RRApiError.message, cscdqm::Exception.message, DQMNet::QValue.message, ConfigBuilder.ConfigBuilder.message, argparse.ArgumentError.message, and python.rootplot.argparse.ArgumentError.message.

712  def __str__(self):
713  if self.argument_name is None:
714  format = '%(message)s'
715  else:
716  format = 'argument %(argument_name)s: %(message)s'
717  return format % dict(message=self.message,
718  argument_name=self.argument_name)
719 
720 # ==============
721 # Action classes
722 # ==============

Member Data Documentation

argparse.ArgumentError.argument_name

Definition at line 708 of file argparse.py.

Referenced by argparse.ArgumentError.__str__().

argparse.ArgumentError.message

Definition at line 709 of file argparse.py.

Referenced by argparse.ArgumentError.__str__().