aboutsummaryrefslogtreecommitdiff
path: root/r_qtl/exceptions.py
diff options
context:
space:
mode:
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.
+ """