module Exceptions:sig
..end
type
exception_type =
| |
DIVIDE_BY_ZERO |
(* |
Division by zero
| *) |
| |
OVERFLOW |
(* |
Overflow
| *) |
| |
PTRINTMATCH |
(* |
Match of a pointer with something which is not a pointer
| *) |
| |
UNDEFINEDVAR |
(* |
A variable has not been found in a context
| *) |
| |
ALREADYDEFINEDVAR |
(* |
The variable already exists in a context
| *) |
| |
WRONGSTACKOFFSET |
(* |
The stack doesn't match a valid stack length
| *) |
| |
NONEMPTYCALLSTACK |
(* |
At the end of the program the call stack is not empty
| *) |
| |
LOCMATCH |
(* |
Match of a location with something which is not a location
| *) |
type
except
val exceptions : except list Pervasives.ref
val exception_type2string : exception_type -> string
t
The type of the exceptionval handleException : exception_type * Types.generic_stat_loc -> unit
exception
The exceptionval raiseException : exception_type -> Types.generic_stat_loc -> unit
t
The type of the exceptiongeneric_stat
The located statement in which the exception has been raisedval handleExceptions : unit -> unit