-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created more verbose error messages, using custom messages. Added an …
…option to attempt to fix the v2 primernames to v3
- Loading branch information
1 parent
a61b36e
commit f670ccd
Showing
11 changed files
with
406 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "1.6.0" | ||
__version__ = "1.7.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
from click import UsageError | ||
|
||
|
||
class PrimerNameError(UsageError): | ||
"""Raised when a primername is invalid""" | ||
|
||
def __init__(self, primername: str): | ||
super().__init__( | ||
f"Invalid primernames: {primername}. Please use format (name)_(amplicon-number)_(LEFT|RIGHT) with optional _(primer-number)" | ||
) | ||
|
||
|
||
class PrimerVersionError(UsageError): | ||
"""Raised when a primername is unexpected""" | ||
|
||
def __init__(self, message: str): | ||
super().__init__(message) | ||
|
||
|
||
class InvalidBedFileLine(UsageError): | ||
"""Raised when a bedline is invalid""" | ||
|
||
def __init__(self, message: str): | ||
super().__init__(message) | ||
|
||
|
||
class SchemeExists(UsageError): | ||
"""Raised when a Scheme already exists""" | ||
|
||
def __init__(self, message: str): | ||
super().__init__(message) | ||
|
||
|
||
class FileNotFound(UsageError): | ||
"""Raised when a file is not found""" | ||
|
||
def __init__(self, message: str): | ||
super().__init__(message) | ||
|
||
|
||
class InvalidReference(UsageError): | ||
"""Raised when a file is not found""" | ||
|
||
def __init__(self, message: str): | ||
super().__init__(message) |
Oops, something went wrong.