Commit 9d307da3 authored by Edward Fauchon-Jones's avatar Edward Fauchon-Jones
Browse files

Add invalid sequence error class

parent 9facf6fd
......@@ -120,3 +120,12 @@ class InvalidInterfields(Error):
"""Interfield check failed because the field dependencies are invalid"""
name = "INVALID FIELDS"
msg = "(Field dependencies are invalid)"
class InvalidSequence(Error):
"""Defined sequence is not valid"""
name = "INVALID SEQUENCE"
msg = "({0:s})"
def __init__(self, spec):
self.msg = self.msg.format(spec.invalidMsg)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment