diff options
| author | coq | 2006-02-20 14:16:36 +0000 |
|---|---|---|
| committer | coq | 2006-02-20 14:16:36 +0000 |
| commit | 51c078b1cb9e052d32f7f4df3fb70d1fc5968be1 (patch) | |
| tree | 3f767b90810554ca119cc60cd77d9d650cd0645a /contrib | |
| parent | 8a8f1c52f10e3a7fcbbeae483d16a85c0e608b47 (diff) | |
Forgot another file...
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8066 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/subtac/subtac_errors.ml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/subtac/subtac_errors.ml b/contrib/subtac/subtac_errors.ml new file mode 100644 index 0000000000..3bbfe22bc0 --- /dev/null +++ b/contrib/subtac/subtac_errors.ml @@ -0,0 +1,24 @@ +open Util +open Pp +open Printer + +type term_pp = Pp.std_ppcmds + +type subtyping_error = + | UncoercibleInferType of loc * term_pp * term_pp + | UncoercibleInferTerm of loc * term_pp * term_pp * term_pp * term_pp + | UncoercibleRewrite of term_pp * term_pp + +type typing_error = + | NonFunctionalApp of loc * term_pp * term_pp * term_pp + | NonConvertible of loc * term_pp * term_pp + | NonSigma of loc * term_pp + | IllSorted of loc * term_pp + +exception Subtyping_error of subtyping_error +exception Typing_error of typing_error + +exception Debug_msg of string + +let typing_error e = raise (Typing_error e) +let subtyping_error e = raise (Subtyping_error e) |
