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 Exception

Public Member Functions

def __init__
 
def __init__
 
def __str__
 
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.

Referenced by argparse.ArgumentError.__init__(), and argparse.ArgumentError.__str__().

691  def __init__(self, argument, message):
693  self.message = message
def _get_action_name
Definition: argparse.py:670
def argparse.ArgumentError.__init__ (   self,
  argument,
  message 
)

Definition at line 707 of file argparse.py.

References argparse.ArgumentError.__init__(), argparse._get_action_name(), argparse.ArgumentError.argument_name, cscdqm::Exception.message, DQMNet::QValue.message, edm::TransEntry.message, and argparse.ArgumentError.message.

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

Member Function Documentation

def argparse.ArgumentError.__str__ (   self)

Definition at line 694 of file argparse.py.

References argparse.ArgumentError.argument_name, python.multivaluedict.dict, cscdqm::Exception.message, DQMNet::QValue.message, edm::TransEntry.message, and argparse.ArgumentError.message.

Referenced by argparse.ArgumentError.__str__().

695  def __str__(self):
696  if self.argument_name is None:
697  format = '%(message)s'
698  else:
699  format = 'argument %(argument_name)s: %(message)s'
700  return format % dict(message=self.message,
701  argument_name=self.argument_name)
702 
def argparse.ArgumentError.__str__ (   self)

Definition at line 711 of file argparse.py.

References argparse.ArgumentError.__init__(), argparse.ArgumentError.__str__(), argparse.ArgumentError.argument_name, python.multivaluedict.dict, cscdqm::Exception.message, DQMNet::QValue.message, edm::TransEntry.message, and 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 691 of file argparse.py.

Referenced by argparse.ArgumentError.__init__(), argparse.ArgumentError.__str__(), and python.rootplot.argparse.ArgumentError.__str__().

argparse.ArgumentError.message

Definition at line 692 of file argparse.py.

Referenced by argparse.ArgumentError.__init__(), argparse.ArgumentError.__str__(), and python.rootplot.argparse.ArgumentError.__str__().