Sun Studio 12 Update 1: 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.