2022-03-07 14:12:01 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*-coding:UTF-8 -*
|
|
|
|
|
2023-04-20 08:44:17 +00:00
|
|
|
from pymisp import PyMISPError
|
2022-03-07 14:12:01 +00:00
|
|
|
|
2023-04-20 08:44:17 +00:00
|
|
|
class AILError(Exception):
|
2022-03-07 14:12:01 +00:00
|
|
|
def __init__(self, message):
|
2023-04-20 08:44:17 +00:00
|
|
|
super(AILError, self).__init__(message)
|
2022-03-07 14:12:01 +00:00
|
|
|
self.message = message
|
|
|
|
|
2023-04-20 08:44:17 +00:00
|
|
|
class UpdateInvestigationError(AILError):
|
2022-03-07 14:12:01 +00:00
|
|
|
pass
|
|
|
|
|
2023-04-20 08:44:17 +00:00
|
|
|
class NewTagError(AILError):
|
2022-03-07 14:12:01 +00:00
|
|
|
pass
|
2023-04-13 12:25:02 +00:00
|
|
|
|
2023-04-20 08:44:17 +00:00
|
|
|
class ModuleQueueError(AILError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class MISPConnectionError(AILError):
|
2023-04-13 12:25:02 +00:00
|
|
|
pass
|