INNER CODE UNIT · Python
__init__
PharmGKB/PharmCAT · preprocessor/pcat/exceptions.py:11
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):
super().__init__('Invalid URL: %s' % url)