Sun Studio 12: Debugging a Program With dbx

Syntax

exception [-d | +d]

Prints the value of the current C++ exception, if any.

See the print Command for the meaning of the -d flag.