Error - EndingOsprey317/jlib GitHub Wiki
__init__
jlib.error.__init__(*args)
This function will not do anything. When called it will print a description of the class to the terminal. If argument 1 is "!pass", it will not print anything. This is for when the class is being called as a string.
Log
jlib.error.log(text, terminal, log, user)
This will create an info request. Argument 1 is what text to be logged. Argument 2 is whether to show in terminal. Argument 3 is whether to write to error.log file. Argument 4 is whether to show to the user.
Warn
jlib.error.warn(text, terminal, log, user)
This will create a warn request. Argument 1 is what text to be logged. Argument 2 is whether to show in terminal. Argument 3 is whether to write to error.log file. Argument 4 is whether to show to the user.
Error
jlib.error.error(text, terminal, log, user)
This will create an error request. Argument 1 is what text to be logged. Argument 2 is whether to show in terminal. Argument 3 is whether to write to error.log file. Argument 4 is whether to show to the user.
Fatal
jlib.error.fatal(text, terminal, log, user)
This will create a fatal request. Argument 1 is what text to be logged. Argument 2 is whether to show in terminal. Argument 3 is whether to write to error.log file. Argument 4 is whether to show to the user.
__str__
jlib.error.__str__()
When the module is called as a string it will return the following text:
JLIB: error
--jlib.error.log(): send an INFO message to 'terminal', 'error file', and/or 'message box'
--jlib.error.warn(): send an WARN message to 'terminal', 'error file', and/or 'message box'
--jlib.error.error(): send an ERROR message to 'terminal', 'error file', and/or 'message box'
--jlib.error.fatal(): send an FATAL message to 'terminal', 'error file', and/or 'message box'