package plato

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file exn.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
exception StopIteration

exception KeyError of string
exception TypeError of string
exception IndexError of string
exception ValueError of string
exception RuntimeError of string
exception OverflowError of string
exception FileNotFoundError of string
exception NotImplementedError of string

let () =
  Printexc.register_printer
    (function
      | (
        KeyError s
      | IndexError s
      | ValueError s
      | RuntimeError s
      | OverflowError s
      | FileNotFoundError s
      | NotImplementedError s
      ) -> Some s
      | _ -> None
    )