Source code for vcfpy.exceptions

# -*- coding: utf-8 -*-
"""Exceptions for the vcfpy module
"""


[docs]class VCFPyException(RuntimeError): """Base class for module's exception"""
[docs]class InvalidHeaderException(VCFPyException): """Raised in the case of invalid header formatting"""
[docs]class InvalidRecordException(VCFPyException): """Raised in the case of invalid record formatting"""
[docs]class IncorrectVCFFormat(VCFPyException): """Raised on problems parsing VCF"""
[docs]class HeaderNotFound(VCFPyException): """Raised when a VCF header could not be found"""
__author__ = 'Manuel Holtgrewe <manuel.holtgrewe@bihealth.de>'