summaryrefslogtreecommitdiff
path: root/vymgmt/base_exceptions/base.py
blob: 839224bf22a34cdb8a482b550c5d761b4bed941d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) 2016 Hochikong

prefix = "\r\n"


class Error(Exception):
    pass


class CommonError(Error):
    def __init__(self, message):
        self.error_message = message

    def __str__(self):
        return prefix + self.error_message


class MaintenanceError(Error):
    def __init__(self, message):
        self.error_message = message

    def __str__(self):
        return prefix + self.error_message