summaryrefslogtreecommitdiffstats
path: root/python/mozperftest/mozperftest/metrics/exceptions.py
blob: dcac64ded9f4c56abb83399cc7c6157d0474ec9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


class MetricsMultipleTransformsError(Exception):
    """Raised when more than one transformer was specified.

    This is because intermediate results with the same data
    name are merged when being processed.
    """

    pass


class MetricsMissingResultsError(Exception):
    """Raised when no results could be found after parsing the intermediate results."""

    pass


class PerfherderValidDataError(Exception):
    """Raised when no valid data (int/float) can be found to build perfherder blob."""

    pass


class NotebookInvalidTransformError(Exception):
    """Raised when an invalid custom transformer is set."""

    pass


class NotebookTransformOptionsError(Exception):
    """Raised when an invalid option is given to a transformer."""

    pass


class NotebookTransformError(Exception):
    """Raised on generic errors within the transformers."""


class NotebookDuplicateTransformsError(Exception):
    """Raised when a directory contains more than one transformers have the same class name."""

    pass


class NotebookInvalidPathError(Exception):
    """Raised when an invalid path is given."""

    pass