diff options
author | Frederick Muriuki Muriithi | 2024-08-09 14:20:17 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-12 09:47:19 -0500 |
commit | 321cb85283dc0a182e86d0ee509cae9ced4e39cd (patch) | |
tree | a05a9cbd98f14d9a27139f99ea4b7f6b0daefcee /r_qtl/exceptions.py | |
parent | d29a205d83a3eeba49483cc2f3fd372e461b5a9c (diff) | |
download | gn-uploader-321cb85283dc0a182e86d0ee509cae9ced4e39cd.tar.gz |
Rename module: Module contains exceptions classes.
Diffstat (limited to 'r_qtl/exceptions.py')
-rw-r--r-- | r_qtl/exceptions.py | 13 |
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. + """ |