summaryrefslogtreecommitdiff
path: root/error.py
diff options
context:
space:
mode:
Diffstat (limited to 'error.py')
-rw-r--r--error.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/error.py b/error.py
index fb5e78c..e93c20e 100644
--- a/error.py
+++ b/error.py
@@ -4,7 +4,7 @@ from __future__ import absolute_import
from ruamel.yaml.compat import utf8
-__all__ = ['Mark', 'YAMLError', 'MarkedYAMLError']
+__all__ = ['Mark', 'YAMLError', 'MarkedYAMLError', 'ReusedAnchorWarning']
class Mark(object):
@@ -80,3 +80,7 @@ class MarkedYAMLError(YAMLError):
if self.note is not None:
lines.append(self.note)
return '\n'.join(lines)
+
+
+class ReusedAnchorWarning(Warning):
+ pass