Add new duplicate marking exception.

stix2.1
Emmanuelle Vargas-Gonzalez 2017-07-13 07:55:52 -04:00
parent bf740b21eb
commit 7abcce7635
1 changed files with 2 additions and 2 deletions

View File

@ -165,11 +165,11 @@ class InvalidSelectorError(STIXError, ValueError):
return msg.format(self.key, self.__class__.__name__) return msg.format(self.key, self.__class__.__name__)
class InvalidMarkingError(STIXError, ValueError): class DuplicateMarkingError(STIXError, ValueError):
"""Marking violation. The marking reference must be a valid identifier.""" """Marking violation. The marking reference must be a valid identifier."""
def __init__(self, cls, key): def __init__(self, cls, key):
super(InvalidMarkingError, self).__init__() super(DuplicateMarkingError, self).__init__()
self.cls = cls self.cls = cls
self.key = key self.key = key