# Path: hgvs/exceptions.py
# class HGVSDataNotAvailableError(HGVSError):
#     pass


from bioutils.sequences import translate_cds
from hgvs.exceptions import HGVSDataNotAvailableError



class RefTranscriptData(object):
    def __init__(self, hdp, tx_ac, pro_ac):
        """helper for generating RefTranscriptData from for c_to_p"""
        tx_info = hdp.get_tx_identity_info(tx_ac)
        tx_seq = hdp.get_seq(tx_ac)

        if tx_info is None or tx_seq is None:

# Path: hgvs/exceptions.py
# class HGVSDataNotAvailableError(HGVSError):
#     pass


# Path: hgvs/utils/reftranscriptdata.py
from bioutils.sequences import translate_cds
from hgvs.exceptions import HGVSDataNotAvailableError




class RefTranscriptData(object):
    def __init__(self, hdp, tx_ac, pro_ac):
        """helper for generating RefTranscriptData from for c_to_p"""
        tx_info = hdp.get_tx_identity_info(tx_ac)
        tx_seq = hdp.get_seq(tx_ac)

        if tx_info is None or tx_seq is None:

            raise HGVSDataNotAvailableError(