Module IR__Exceptions

type visibility =
| Exn_user

always add to error log

| Exn_developer

only add to error log in developer mode

| Exn_system

never add to error log

visibility of the exception

val compare_visibility : visibility -> visibility -> int
val equal_visibility : visibility -> visibility -> bool
type severity =
| Like
| Info
| Advice
| Warning
| Error

severity of the report

val compare_severity : severity -> severity -> int
val equal_severity : severity -> severity -> bool
type err_class =
| Checker
| Prover
| Nocat
| Linters

class of error

val equal_err_class : err_class -> err_class -> bool
exception Abduction_case_not_implemented of IBase.Logging.ocaml_pos
exception Analysis_stops of IR.Localise.error_desc * IBase.Logging.ocaml_pos option
exception Array_of_pointsto of IBase.Logging.ocaml_pos
exception Array_out_of_bounds_l1 of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Array_out_of_bounds_l2 of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Array_out_of_bounds_l3 of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Bad_footprint of IBase.Logging.ocaml_pos
exception Biabd_use_after_free of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Cannot_star of IBase.Logging.ocaml_pos
exception Class_cast_exception of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Codequery of IR.Localise.error_desc
exception Comparing_floats_for_equality of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Condition_always_true_false of IR.Localise.error_desc * bool * IBase.Logging.ocaml_pos
exception Custom_error of string * IR.Localise.error_desc
exception Dummy_exception of IR.Localise.error_desc
exception Dangling_pointer_dereference of bool * IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Deallocate_stack_variable of IR.Localise.error_desc
exception Deallocate_static_memory of IR.Localise.error_desc
exception Deallocation_mismatch of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Divide_by_zero of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Field_not_null_checked of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Empty_vector_access of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Eradicate of IBase.IssueType.t * IR.Localise.error_desc
exception Checkers of IBase.IssueType.t * IR.Localise.error_desc
exception Frontend_warning of IBase.IssueType.t * IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Inherently_dangerous_function of IR.Localise.error_desc
exception Internal_error of IR.Localise.error_desc
exception Java_runtime_exception of IR.Typ.Name.t * string * IR.Localise.error_desc
exception Leak of bool * visibility * IR.Localise.error_desc * bool * IR.PredSymb.resource * IBase.Logging.ocaml_pos
exception Missing_fld of IR.Fieldname.t * IBase.Logging.ocaml_pos
exception Premature_nil_termination of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Null_dereference of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Null_test_after_dereference of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Parameter_not_null_checked of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Pointer_size_mismatch of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Precondition_not_found of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Precondition_not_met of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Retain_cycle of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Registered_observer_being_deallocated of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Return_expression_required of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Return_statement_missing of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Return_value_ignored of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Skip_function of IR.Localise.error_desc
exception Skip_pointer_dereference of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Stack_variable_address_escape of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Symexec_memory_error of IBase.Logging.ocaml_pos
exception Unary_minus_applied_to_unsigned_expression of IR.Localise.error_desc * IBase.Logging.ocaml_pos
exception Unknown_proc
exception Wrong_argument_number of IBase.Logging.ocaml_pos
val severity_string : severity -> string

string describing an error kind

val handle_exception : exn -> bool

Return true if the exception is not serious and should be handled in timeout mode

val print_exception_html : string -> exn -> unit

print a description of the exception to the html output

val pp_err : IBase.Location.t -> severity -> IBase.IssueType.t -> IR.Localise.error_desc -> IBase.Logging.ocaml_pos option -> Stdlib.Format.formatter -> unit -> unit

pretty print an error

type t = {
name : IBase.IssueType.t;
description : IR.Localise.error_desc;
ocaml_pos : IBase.Logging.ocaml_pos option;

location in the infer source code

visibility : visibility;
severity : severity option;
category : err_class;
}
val recognize_exception : exn -> t