(***********************************************************************)
(*                                                                     *)
(*                                 GALAX                               *)
(*                            XML Query Engine                         *)
(*                                                                     *)
(*  Copyright 2000, Lucent Technologies.                               *)
(*  Distributed only by permission.                                    *)
(*                                                                     *)
(***********************************************************************)

(* $Id: xerror.mli,v 1.1 2002/11/15 05:29:23 simeon Exp $ *)

type xquery_error_msg =
  | Empty_Error
  | Error_Item of Datamodel._Value

exception Xquery_error of xquery_error_msg

val raise_empty_error : unit -> 'a

val raise_item_error : Datamodel._Value -> 'a

val downgrade_error : xquery_error_msg -> 'a

