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


from .base import Error

prefix = "\r\n"


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

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


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

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