aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/marker_regression/exceptions.py
blob: 8c7e822bab17802ab18c646f12ffbc86fa4be216 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Mapping Exception classes."""

class NoMappingResultsError(Exception):
    "Exception to raise if no results are computed."

    def __init__(self, trait, dataset, mapping_method):
        self.trait = trait
        self.dataset = dataset
        self.mapping_method = mapping_method
        self.message = (
            f"The mapping of trait '{trait}' from dataset '{dataset}' using "
            f"the '{mapping_method}' mapping method returned no results.")
        super().__init__(self.message, trait, mapping_method)