Add new duplicate marking exception.
parent
bf740b21eb
commit
7abcce7635
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue