From 321cb85283dc0a182e86d0ee509cae9ced4e39cd Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 9 Aug 2024 14:20:17 -0500 Subject: Rename module: Module contains exceptions classes. --- r_qtl/exceptions.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 r_qtl/exceptions.py (limited to 'r_qtl/exceptions.py') diff --git a/r_qtl/exceptions.py b/r_qtl/exceptions.py new file mode 100644 index 0000000..9620cf4 --- /dev/null +++ b/r_qtl/exceptions.py @@ -0,0 +1,13 @@ +"""R/qtl and R/qtl2 error types.""" + +class RQTLError(Exception): + """Base class for R/qtl and R/qtl2 errors.""" + +class InvalidFormat(RQTLError): + """Raised when the format of the file(s) is invalid.""" + +class MissingFileException(InvalidFormat): + """ + Raise when at least one file listed in the control file is missing from the + R/qtl2 bundle. + """ -- cgit v1.2.3