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