|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Public Member Functions | |
| __init__ (self, message, kwargs, cause) | |
| context (self) | |
| parameters (self) | |
| isInstanceOf (self, cname) | |
| __str__ (self) | |
Public Member Functions inherited from ers::Issue | |
| Issue (const Context &context, const std::string &message=std::string()) | |
| Issue (const Context &context, const std::exception &cause) | |
| Issue (const Context &context, const std::string &message, const std::exception &cause) | |
| Issue (const Issue &other) | |
| virtual | ~Issue () noexcept |
| virtual Issue * | clone () const =0 |
| virtual const char * | get_class_name () const =0 |
| Get key for class (used for serialisation) | |
| virtual inheritance_type | get_class_inheritance () const =0 |
| Get inheritance chain. | |
| virtual void | raise () const =0 |
| throws a copy of this issue preserving the real issue type | |
| void | add_qualifier (const std::string &qualif) |
| adds a qualifier to the issue | |
| const Issue * | cause () const |
| return the cause Issue of this Issue | |
| const Context & | context () const |
| Context of the issue. | |
| const std::string & | message () const |
| General cause of the issue. | |
| const std::vector< std::string > & | qualifiers () const |
| return array of qualifiers | |
| const string_map & | parameters () const |
| return array of parameters | |
| ers::Severity | severity () const |
| severity of the issue | |
| template<class Precision = std::chrono::seconds> | |
| std::string | time (const std::string &format="%Y-%b-%d %H:%M:%S", bool isUTC=false) const |
| string representation of local time of the issue | |
| template<class Precision > | |
| std::string | localtime (const std::string &format="%Y-%b-%d %H:%M:%S") const |
| string representation of UTC time of the issue | |
| template<class Precision > | |
| std::string | gmtime (const std::string &format="%Y-%b-%d %H:%M:%S") const |
| std::time_t | time_t () const |
| seconds since 1 Jan 1970 | |
| const system_clock::time_point & | ptime () const |
| original time point of the issue | |
| const char * | what () const noexcept |
| General cause of the issue. | |
| ers::Severity | set_severity (ers::Severity severity) const |
| void | wrap_message (const std::string &begin, const std::string &end) |
Public Attributes | |
| time = time.time() | |
| message = message | |
| cause = cause | |
| context_parameters = vars(self.__context) | |
| list | qualifiers = [ self.__context.package_name ] |
| rpc | |
| rc = ers.RemoteContext(self.__context.package_name,self.__context.file_name,self.__context.line_number,self.__context.function_name,self.rpc) | |
| ai = ers.AnyIssue( self.__context.function_name, self.rc, message ) | |
Private Attributes | |
| __context = PyContext(self) | |
| __parameters = dict([ (str(k), str(v)) for (k,v) in list(kwargs.items()) ]) | |
Static Private Attributes | |
| __verbosity = int( os.getenv( "DUNEDAQ_ERS_VERBOSITY_LEVEL", "2" ) ) | |
Additional Inherited Members | |
Protected Member Functions inherited from ers::Issue | |
| Issue (Severity severity, const system_clock::time_point &time, const ers::Context &context, const std::string &message, const std::vector< std::string > &qualifiers, const std::map< std::string, std::string > ¶meters, const ers::Issue *cause=0) | |
| Gets a value of any type that has an input operator for the standard stream defined. | |
| template<typename T > | |
| void | get_value (const std::string &key, T &value) const |
| void | get_value (const std::string &key, const char *&value) const |
| void | get_value (const std::string &key, std::string &value) const |
| Sets a value of any type that has an output operator for the standard stream defined. | |
| template<typename T > | |
| void | set_value (const std::string &key, T value) |
| void | set_message (const std::string &message) |
| void | prepend_message (const std::string &message) |
Static Protected Member Functions inherited from ers::Issue | |
| static auto | _get_inheritance () |
Definition at line 47 of file __init__.py.
| ers.PyIssue.__init__ | ( | self, | |
| message, | |||
| kwargs, | |||
| cause ) |
Definition at line 51 of file __init__.py.
| ers.PyIssue.__str__ | ( | self | ) |
Definition at line 80 of file __init__.py.
| ers.PyIssue.context | ( | self | ) |
Definition at line 70 of file __init__.py.
| ers.PyIssue.isInstanceOf | ( | self, | |
| cname ) |
Definition at line 77 of file __init__.py.
| ers.PyIssue.parameters | ( | self | ) |
Definition at line 74 of file __init__.py.
|
private |
Definition at line 57 of file __init__.py.
|
private |
Definition at line 60 of file __init__.py.
|
staticprivate |
Definition at line 49 of file __init__.py.
| ers.PyIssue.ai = ers.AnyIssue( self.__context.function_name, self.rc, message ) |
Definition at line 67 of file __init__.py.
| ers.PyIssue.cause = cause |
Definition at line 56 of file __init__.py.
| ers.PyIssue.context_parameters = vars(self.__context) |
Definition at line 58 of file __init__.py.
| ers.PyIssue.message = message |
Definition at line 55 of file __init__.py.
| list ers.PyIssue.qualifiers = [ self.__context.package_name ] |
Definition at line 59 of file __init__.py.
| ers.PyIssue.rc = ers.RemoteContext(self.__context.package_name,self.__context.file_name,self.__context.line_number,self.__context.function_name,self.rpc) |
Definition at line 65 of file __init__.py.
| ers.PyIssue.rpc |
Definition at line 62 of file __init__.py.
| ers.PyIssue.time = time.time() |
Definition at line 53 of file __init__.py.