Exceptions
There is in the directory openexplorer/_private_tools
a module named exceptions.py
with customized exceptions. Use them timely. And, in case you want to raise a new exception type, please include it here for the others to use it.
To use a exception you just need to import it and raise it:
from openexplorer._private_tools.exceptions import NotImplementedMethodError
def method_to_be_implemented_in_the_future():
raise NotImplementedMethodError
Let’s see the list of customized exceptions in openexplorer.
NotImplementedMethodError
The NotImplementedMethodError
exception is raised when a method has being already defined but its code was not fully implemented yet. Maybe the method was just included in a developing version to be coded in the future. Or maybe the method works already for certain values of the input arguments, but not for others yet.
See also
openexplorer._private_tools.exceptions.NotImplementedMethodError()
NotImplementedClassError
The NotImplementedClassError
exception is raised when a class has being already defined but its code was not fully implemented yet. Maybe the class was just included in a developing version to be coded in the future. Or maybe the class can be instantated already for certain values of the input arguments, but not for others yet.
See also
openexplorer._private_tools.exceptions.NotImplementedClassError()
BadCallError
The BadCallError
is raised when a method was not properly called.
This exception has an optional input argument: the name of the probable wrong input argument.
See also
openexplorer._private_tools.exceptions.BadCallError()