logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Printexc.Slot - no description

Documentation

       Module Slot
        : sigendSince 4.02

       typet = Printexc.backtrace_slotvalis_raise : t->boolis_raiseslot  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

       valis_inline : t->boolis_inlineslot is true when slot refers to a call that got inlined by the compiler,  and  false  when  it
       comes from any other context.

       Since 4.04

       vallocation : t->Printexc.locationoptionlocationslot returns the location information of the slot, if available, 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 compiled with debug information ( -g )

       Since 4.02

       valname : t->stringoptionnameslot returns the name of the function or definition enclosing the location referred to by the slot.

       nameslot  returns  None  if  the name is unavailable, which may happen for the same reasons as location
       returning None.

       Since 4.11

       valformat : int->t->stringoptionformatposslot returns the string representation of slot as  raw_backtrace_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, formatposslot
       returns None .

       Since 4.02

OCamldoc                                           2025-06-12                                  Printexc.Slot(3o)

Module

       Module   Printexc.Slot

Name

       Printexc.Slot - no description

See Also