GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PRINTEXC.SLOT (3)

NAME

Printexc.Slot - no description

CONTENTS

Module
Documentation

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 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

val format : int -> t -> string option

format pos slot 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, format pos slot returns None .

Since 4.02

Search for    or go to Top of page |  Section 3 |  Main Index


OCamldoc PRINTEXC.SLOT (3) 2016-03-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.