Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions maec/misc/exceptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Common exception classes used by MAEC conversion tools."""

"""Indicates a failure caused by a rejected API key."""
class APIKeyException(Exception):
pass

"""Indicates a failure caused by a rejected API key."""
class NetworkFailureException(Exception):
pass

"""Indicates a failure caused by a request for a resource unknown to some service.
(e.g., asking for a report from ThreatExpert by MD5, but the MD5 is unknown to ThreatExpert)"""
class LookupNotFoundException(Exception):
pass