toWrappedException

Converts the exception to a WrappedException.

Return

The wrapped exception.