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
python.rootplot.argparse.ArgumentError Class Reference
Inheritance diagram for python.rootplot.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 712 of file argparse.py.

Constructor & Destructor Documentation

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

Definition at line 719 of file argparse.py.

720  def __init__(self, argument, message):
722  self.message = message

Member Function Documentation

def python.rootplot.argparse.ArgumentError.__str__ (   self)

Definition at line 723 of file argparse.py.

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

724  def __str__(self):
725  if self.argument_name is None:
726  format = '%(message)s'
727  else:
728  format = 'argument %(argument_name)s: %(message)s'
729  return format % dict(message=self.message,
730  argument_name=self.argument_name)
731 

Member Data Documentation

python.rootplot.argparse.ArgumentError.argument_name

Definition at line 720 of file argparse.py.

Referenced by python.rootplot.argparse.ArgumentError.__str__().

python.rootplot.argparse.ArgumentError.message

Definition at line 721 of file argparse.py.

Referenced by python.rootplot.argparse.ArgumentError.__str__().