manpagez: man pages & more
man Printexc.Slot(3)
Home | html | info | man
Printexc.Slot(3)                 OCaml library                Printexc.Slot(3)




NAME

       Printexc.Slot - no description


Module

       Module   Printexc.Slot


Documentation

       Module Slot
        : sig end







       type t = Printexc.backtrace_slot





       val is_raise : t -> bool


       is_raise  slot is true when slot refers to a raising point in the code,
       and false when it comes from a simple function call.


       Since 4.02



       val location : t -> Printexc.location option


       location slot returns the location information of the slot,  if  avail-
       able, and None otherwise.

       Some possible reasons for failing to return a location are as follow:

       -the slot corresponds to a compiler-inserted raise

       -the  slot  corresponds to a part of the program that has not been com-
       piled with debug information ( -g )



       Since 4.02



       val format : int -> t -> string option


       format pos slot returns the string representation of slot as  raw_back-
       trace_to_string  would format it, assuming it is the pos -th element of
       the backtrace: the 0 -th element is pretty-printed differently than the
       others.

       Whole-backtrace  printing functions also skip some uninformative slots;
       in that case, format pos slot returns None .


       Since 4.02





OCamldoc                          2014-10-18                  Printexc.Slot(3)

ocaml 4.02.1 - Generated Mon Oct 20 18:40:00 CDT 2014
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.