]> matita.cs.unibo.it Git - helm.git/blob - matita/components/binaries/probe/error.ml
probe
[helm.git] / matita / components / binaries / probe / error.ml
1 (*
2     ||M||  This file is part of HELM, an Hypertextual, Electronic
3     ||A||  Library of Mathematics, developed at the Computer Science
4     ||T||  Department, University of Bologna, Italy.
5     ||I||
6     ||T||  HELM is free software; you can redistribute it and/or
7     ||A||  modify it under the terms of the GNU General Public License
8     \   /  version 2 or (at your option) any later version.
9      \ /   This software is distributed as is, NO WARRANTY.
10       V_______________________________________________________________ *)
11
12 module L = List
13 module P = Printf
14
15 exception Error of string
16
17 let error s =
18   raise (Error s)
19
20 let unsupported protocol =
21   error (P.sprintf "unsupported protocol: %s" protocol)
22
23 let missing path =
24   error (P.sprintf "missing path: %s" path)
25
26 let unrooted path roots =
27   error (P.sprintf "missing root: %s (found roots: %u)" path (L.length roots))
28
29 let malformed () =
30   error "malformed term"