This repository has been archived on 2023-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
ACMS/src/Server/CommandException.py

25 lines
426 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
A simple class to manage our custom exceptions.
"""
from colorama import Fore
__author__ = "Tatiyk"
__copyright__ = "Copyright 2017, ACMS"
__license__ = "GPLv3"
__status__ = "Production"
__date__ = "03/19/2017"
class CommandException(Exception):
def __init__(self, message):
self.message = Fore.RED + message + Fore.RESET
def __str__(self):
return self.message