Sun Studio 12 Update 1: Debugging a Program With dbx

whocatches typename Command

The whocatches command reports where an exception of typename would be caught if thrown at the current point of execution. Use this command to find out what would happen if an exception were thrown from the top frame of the stack.

The line number, function name, and frame number of the catch clause that would catch typename are displayed. The command returns type is unhandled” if the catch point is in the same function that is doing the throw.

For more information, see whocatches Command.