Best Practices in RAS Exception Handling

Options for displaying and logging exception information can also be specified. These tasks can be performed by modifying the web.xml file (located by default in the \WEB-INF\directory of your Web application) as follows.

Displaying Exceptions

Three options exist for displaying exception information to the user. Setting the crystal_exception_info parameter to one of the following values determines how exceptions are handled:

  • short— The exception information is displayed without the accompanying stack trace.

  • long— The exception information is displayed with the accompanying stack trace.

  • disable— The exception information is not displayed; the user must handle the exception.

The following code shows an ...

Get Special Edition Using® Crystal Reports® 10 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.