You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
887 B
29 lines
887 B
8 years ago
|
(*
|
||
|
* Copyright (c) 2017 - present Facebook, Inc.
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* This source code is licensed under the BSD style license found in the
|
||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||
|
*)
|
||
|
|
||
|
open! IStd
|
||
|
|
||
|
(* WARNING: ONLY USE IF Logging IS NOT AVAILABLE TO YOU FOR SOME REASON (e.g., inside Config). *)
|
||
|
|
||
8 years ago
|
exception InferExternalError of string
|
||
8 years ago
|
|
||
8 years ago
|
exception InferInternalError of string
|
||
8 years ago
|
|
||
8 years ago
|
exception InferUserError of string
|
||
8 years ago
|
|
||
|
(** kind of error for [die], with similar semantics as [Logging.{external,internal,user}_error] *)
|
||
|
type error = ExternalError | InternalError | UserError
|
||
|
|
||
|
val exit_code_of_exception : Exn.t -> int
|
||
|
|
||
|
val die : error -> ('a, Format.formatter, unit, _) format4 -> 'a
|
||
|
(** Raise the corresponding exception. *)
|
||
8 years ago
|
|
||
|
val raise_error : error -> msg:string -> 'a
|