sig
type error =
Lexing of Finfo.finfo * string
| Parsing of Finfo.finfo * string
| Algebra_Parsing_Error of string
| Namespace_Internal of string
| Namespace_Error of string
| Static_Error of string
| Static_Internal of string
| Module_Import of string
| Annotation_Error of string
| Malformed_Type of string
| Malformed_Tuple of string
| Malformed_Expr of string
| Malformed_Core_Expr of string
| Malformed_Algebra_Expr of string
| Static_Type_Error of string
| Automata of string
| Undefined_Variable of Finfo.finfo * string * string
| Rewriting of string
| Streaming_XPath of string
| Factorization of string
| Compilation of string
| Symbol_Already_Defined of (string * string)
| Optimization of string
| Code_Selection of string
| Expr_Error of string
| Key_Error of (string * string)
| KeyRef_Error of (string * string)
| Physical_Type_Error of string
| Constructor_Error of string
| Type_Error of string
| Unicode_Error of string
| Validation of string
| Schema of string
| Schema_Internal of string
| Schema_Import of string
| Serialization of string
| Datamodel of string
| URI_Error of string
| Load_Error of string
| Cast_Error of string
| Protocol_Error of string
| Stream_Error of string
| Cursor_Error of string
| Physical_DM_Error of string
| Malformed_DateTimeValue of string
| Jungle_Error of string
| Shredded_Error of string
| Projection of string
| Root
| Toplevel_Error of string
| Monitor_Error of string
| Parameter_Mismatch of string
| Unknown of string
| Internal_Error of string
| Wrong_Args of string
| Prototype of string
| Undefined of string
| Mapping_Failure of string
| Update_Error of string
| DXQ_Error of string
| Testing_Error of string
| Error of string
| XQueryX_Error of Finfo.finfo * string
| Wrapped_Error of Finfo.finfo * string
exception Query of Error.error
val printf_warning : string -> unit
val eprintf_warning : string -> unit
val bprintf_warning : string -> string
val printf_error : string -> exn -> unit
val eprintf_error : string -> exn -> unit
val bprintf_error : string -> exn -> string
val printf_error_safe : string -> exn -> unit
val eprintf_error_safe : string -> exn -> unit
val bprintf_error_safe : string -> exn -> string
val error_with_file_location : Finfo.finfo -> exn -> exn
end