* Add Exception class, OracleError

This commit is contained in:
Matthew Honnibal 2015-02-02 11:57:32 +11:00
parent bfe1bcc02d
commit d68678a93e
1 changed files with 5 additions and 1 deletions

View File

@ -278,5 +278,9 @@ cdef class TransitionSystem:
s.stack[0], gold_heads[s.stack[0]],
s.i, gold_heads[s.i]]
raise Exception(msg % tuple(fields))
raise OracleError(msg % tuple(fields))
return t
class OracleError(Exception):
pass