INNER CODE UNIT · Python

ReportableException

PharmGKB/PharmCAT · preprocessor/pcat/exceptions.py:9

class ReportableException(Exception):
    """Simple exception with message(s)"""
    def __init__(self, msg: str):
        self.msg: str = msg

    def __str__(self):
        return self.msg


class InappropriateVCFSuffix(ReportableException):
    """Inappropriate VCF suffix (not ending with .vcf.gz)"""
    def __init__(self, msg: Path | str):
        super().__init__('Inappropriate VCF suffix (not ending with .vcf, .vcf.gz, .vcf.bgz, .bcf, or .bcf.bgzf): %s' % str(msg))


class InvalidURL(ReportableException):
    """Inappropriate URL. No downloadable content was found."""
    def __init__(self, url: str):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…