Advanced Customization > Info*Engine User’s Guide > Info*Engine JSP Pages > Catching Exceptions > Using an Error Page
  
Using an Error Page
By creating an error page and specifying it in the page directive on your JSP pages, you can catch exceptions from the page. You can designate that a page is an error page on the page directive by setting the isErrorPage attribute to true. For example:
<%@page language="java" isErrorPage="true"
    import="java.io.*,com.infoengine.util.*,com.infoengine.exception.*,
    com.infoengine.exception.fatal.*,com.infoengine.exception.nonfatal.*,
    java.util.Hashtable"%>
Use your error page by specifying it as the error page in the page directive on other pages. For example the following page directive sets the errorPage attribute to IEError.jsp:
<%@page language="java" session="false" errorPage="IEError.jsp"%>
An error page can be very useful because it can act as a common location for error processing to give a consistent experience when errors occur. An error page can also be written to deal with exceptions based on their type, presenting more meaningful information to the user.