module JavaError: sig .. end
Utility functions for Java errors.
Instance creation
 
 
 
Throw
 
 
Base methods
 
 
 
 
val print_stack_trace : t -> unit
 
 
Null value
 
val null : t
The null value.
 
 
val is_null : t -> bool
is_null obj returns true iff obj is equal to null.
 
 
val is_not_null : t -> bool
is_not_null obj returns false iff obj is equal to null.
 
 
Miscellaneous
 
val wrap : t -> t option
wrap obj wraps the reference 
obj into an option type:
- Some xif- objis not- null;
- Noneif- objis- null.
 
 
 
val unwrap : t option -> t
unwrap obj unwraps the option 
obj into a bare reference:
- Some xis mapped to- x;
- Noneis mapped to- null.