aboutsummaryrefslogtreecommitdiff
path: root/r_qtl/exceptions.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-09 14:20:17 -0500
committerFrederick Muriuki Muriithi2024-08-12 09:47:19 -0500
commit321cb85283dc0a182e86d0ee509cae9ced4e39cd (patch)
treea05a9cbd98f14d9a27139f99ea4b7f6b0daefcee /r_qtl/exceptions.py
parentd29a205d83a3eeba49483cc2f3fd372e461b5a9c (diff)
downloadgn-uploader-321cb85283dc0a182e86d0ee509cae9ced4e39cd.tar.gz
Rename module: Module contains exceptions classes.
Diffstat (limited to 'r_qtl/exceptions.py')
-rw-r--r--r_qtl/exceptions.py13
1 files changed, 13 insertions, 0 deletions
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.
+ """