Source code for botlib.error
# error.py
#
#
""" BOTLIB Exceptions. """
import builtins
[docs]class Error(builtins.Exception):
""" yooooo !!!. """
pass
[docs]class EDEFAULT(Error):
""" missing default value. """
[docs]class ENOWORKDIR(Error):
""" a workdir is not provided. """
pass
[docs]class ERSINGLENAME(Error):
""" firs level directory names are reserved. """
pass
[docs]class ETOPLEVELDIR(Error):
""" Path is a toplevel directory and cannot be written to. """
pass
[docs]class ENODEFAULT(Error):
""" No default provided. """
pass
[docs]class ENOBID(Error):
""" no bot id available. """
pass
[docs]class EDEFINE(Error):
""" define error. """
pass
[docs]class ENETWORK(Error):
""" heerlijk de heden ten dage. """
pass
[docs]class ENOTXT(Error):
""" no text to parse. """
pass
[docs]class ENOPATH(Error):
""" there is not path available to save to disk. """
pass
[docs]class ENODATA(Error):
""" the objectect loaded from file has no data section. """
pass
[docs]class ERE(Error):
""" error in a regular expression. """
[docs]class ENOPREFIX(Error):
""" first argument is not a directory in the workdir. """
pass
[docs]class EBORDER(Error):
""" program is reaching out of its cfgured workdir. """
pass
[docs]class EDIR(Error):
""" file is a directory error. """
pass
[docs]class EWORKDIR(Error):
""" workdir is not set or not reachable. """
pass
[docs]class ERESUME(Error):
""" An error occured during resume. """
pass
[docs]class EREBOOT(Error):
""" An error occured during reboot. """
pass
[docs]class EPASSWORD(Error):
""" wrong password provided. """
pass
[docs]class ERESERVED(Error):
""" a reserved word is used. """
pass
[docs]class ELOAD(Error):
""" loading of the objectect failed. """
pass
[docs]class EFILENAME(Error):
""" filename is not correct. """
pass
[docs]class EISMETHOD(Error):
""" Attribute is a method. """
pass
[docs]class ENOMETHOD(Error):
""" no method is provided. """
pass
[docs]class ENODATE(Error):
""" date cannot be determined. """
pass
[docs]class ENOTIME(Error):
""" no time can be detected. """
pass
[docs]class ENODIR(Error):
""" directory is not available. """
pass
[docs]class EDISPATCHER(Error):
""" dispatcher is missing. """
pass
[docs]class EATTRIBUTE(Error):
""" item is already an attribute. """
pass
[docs]class ENOTSET(Error):
""" variable is not set. """
pass
[docs]class ESET(Error):
""" Attribute is already set. """
pass
[docs]class ESIGNATURE(Error):
""" signature check failed. """
pass
[docs]class ENOTIMPLEMENTED(Error):
""" method or function is not implemented. """
pass
[docs]class ENOJSON(Error):
""" string cannot be _parsed as JSON. """
pass
[docs]class EJSON(Error):
""" A JSON compiling error occured. """
pass
[docs]class EDISCONNECT(Error):
""" server has disconnect. """
pass
[docs]class ECONNECT(Error):
""" connect error occured. """
pass
[docs]class EFILE(Error):
""" error reading the file. """
pass
[docs]class EARGUMENT(Error):
""" argument given results in an error. """
pass
[docs]class ETYPE(Error):
""" argument is of the wrong type. """
pass
[docs]class EOWNER(Error):
""" origin is not an owner. """
pass
[docs]class EFUNC(Error):
""" error occured during execution of the function. """
pass
[docs]class ENOFUNC(Error):
""" function is not provided. """
pass
[docs]class EREGISTER(Error):
""" error during registration, """
pass