This method prints the stack trace to ps. It prints the
entire stackTrace of all the previous exceptions that it has
encapsulated.
Parameters: ps - PrintStream into which the stack trace will be written.
This method prints the stack trace to pw. It prints the
entire stackTrace of all the previous exceptions that it has
encapsulated.
Parameters: pw - PrintWriter into which the stack trace will be written.