Index of exceptions

A
Already_displayed_error [Location]

Raising Already_displayed_error signals an error which has already been printed.

B
Bad [Arg]

Functions in spec or anon_fun can raise Arg.Bad with an error message to reject invalid arguments.

Break [Sys]

Exception raised on interactive interrupt if Sys.catch_break is on.

E
Empty [Stack]

Raised when Stack.pop or Stack.top is applied to an empty stack.

Empty [Queue]

Raised when Queue.take or Queue.peek is applied to an empty queue.

Error [Dynlink]

Errors in dynamic linking are reported by raising the Error exception with a description of the error.

Error [Pparse]
Error [Typemod]
Error [Lexer]
Error [Attr_helper]
Error [Syntaxerr]
Error [Location]

Raising Error e signals an error e; the exception will be caught and the error will be printed.

Error [Stream]

Raised by parsers when the first component of a stream pattern is accepted, but one of the following components is rejected.

Error_forward [Typemod]
Errors [Warnings]
Escape_error [Syntaxerr]
Exit [Pervasives]
F
Failure [Stream]

Raised by parsers when none of the first components of the stream patterns is accepted.

Fatal_error [Misc]
G
Graphic_failure [Graphics]

Raised by the functions below when they encounter an error.

H
Help [Arg]

Raised by Arg.parse_argv when the user asks for help.

HookExnWrapper [Misc]

An exception raised by a hook will be wrapped into a HookExnWrapper constructor by the hook machinery.

I
Inconsistency [Consistbl]
N
Not_available [Consistbl]
P
Parse_error [Parsing]

Raised when a parser encounters a syntax error.

S
Scan_failure [Scanf]

When the input can not be read according to the format string specification, formatted input functions typically raise exception Scan_failure.

U
Undefined [Lazy]
Undefined [CamlinternalLazy]
Unix_error [UnixLabels]

Raised by the system calls below when an error is encountered.

Unix_error [Unix]

Raised by the system calls below when an error is encountered.