error.ml1 2 3 4 5 6 7 8 9 10 11 12 13(**************************************************************************) (* *) (* Copyright 2020 OCamlPro & Origin Labs *) (* *) (* All rights reserved. This file is distributed under the terms of the *) (* GNU Lesser General Public License version 2.1, with the special *) (* exception on linking described in the file LICENSE. *) (* *) (**************************************************************************) exception Error of string let raise fmt = Printf.kprintf (fun s -> raise (Error s)) fmt