INNER CODE UNIT · Python
__str__
PharmGKB/PharmCAT · preprocessor/pcat/exceptions.py:14
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)