# -*- coding: utf-8 -*-
"""Exceptions for the vcfpy module
"""
__author__ = 'Manuel Holtgrewe <manuel.holtgrewe@bihealth.de>'
[docs]class VCFPyException(RuntimeError):
"""Base class for module's exception"""
[docs]class InvalidRecordException(VCFPyException):
"""Raised in the case of invalid record formatting"""
[docs]class VCFPyWarning(Warning):
"""Base class for module's warnings"""
[docs]class FieldInfoNotFound(VCFPyWarning):
"""A header field is not found, default is used"""
[docs]class FieldMissingNumber(VCFPyWarning):
"""Raised when compound heade misses number"""
[docs]class FieldInvalidNumber(VCFPyWarning):
"""Raised when compound header has invalid number"""
[docs]class LeadingTrailingSpaceInKey(VCFPyWarning):
"""Leading or trailing space in key"""
[docs]class UnknownFilter(VCFPyWarning):
"""Missing FILTER"""
[docs]class UnknownVCFVersion(VCFPyWarning):
"""Unknown VCF version"""
[docs]class IncorrectListLength(VCFPyWarning):
"""Wrong length of multi-element field"""
[docs]class SpaceInChromLine(VCFPyWarning):
"""Space instead of TAB in ##CHROM line"""
[docs]class CannotConvertValue(VCFPyWarning):
"""Cannot convert value."""