Belle II Software development
Error Class Reference
Inheritance diagram for Error:
ByteAlignError CreationError InterpretError ReadError

Public Member Functions

def __init__ (self, *params)
 
def __str__ (self)
 

Public Attributes

 msg
 
 params
 

Detailed Description

Base class for errors in the bitstring module.

Definition at line 91 of file bitstring.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
params 
)

Definition at line 94 of file bitstring.py.

94 def __init__(self, *params):
95 self.msg = params[0] if params else ''
96 self.params = params[1:]
97

Member Function Documentation

◆ __str__()

def __str__ (   self)

Definition at line 98 of file bitstring.py.

98 def __str__(self):
99 if self.params:
100 return self.msg.format(*self.params)
101 return self.msg
102
103

Member Data Documentation

◆ msg

msg

Definition at line 95 of file bitstring.py.

◆ params

params

Definition at line 96 of file bitstring.py.


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