cloudmesh-common.cloudmesh.common.error
¶
A simple framework to handle error messages
Module Contents¶
Classes¶
A class to print error messages |
-
class
cloudmesh-common.cloudmesh.common.error.
Error
¶ Bases:
object
A class to print error messages
-
classmethod
msg
(cls, error=None, debug=True, trace=True)¶ prints the error message
- Parameters
error – the error message
debug – only prints it if debug is set to true
trace – if true prints the trace
- Returns
-
classmethod
traceback
(cls, error=None, debug=True, trace=True)¶ prints the trace
- Parameters
error – a message preceding the trace
debug – prints it if debug is set to true
trace –
- Returns
-
classmethod
info
(cls, msg, debug=True)¶ prints an info msg.
- Parameters
msg – the message
- Returns
-
classmethod
warning
(cls, msg, debug=True)¶ prints a warning message.
- Parameters
msg –
- Returns
-
classmethod
debug
(cls, msg, debug=True)¶ prints a debug message.
- Parameters
msg – the message
- Returns
-
classmethod
exit
(cls, msg)¶ call a system exit
- Parameters
msg –
- Returns
-
classmethod