MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual page 221

Table of Contents

Advertisement

Generating Custom Error Messages with cferror
Error type
Validation
Example of a request error page
The following example shows a custom error page for a request error:
<html>
<head>
</head>
<body>
<cfoutput>
<h2>Sorry</h2>
<p>An error occurred when you requested this page.
Please email the Webmaster to report this error.
We will work to correct the problem and apologize
for the inconvenience.</p>
<table border=1>
<tr><td><b>Error Information</b> <br>
</td></tr></table>
</cfoutput>
</body>
</html>
Error variable
error.validationHeader
error.invalidFields
error.validationFooter
<title>Products - Error</title>
Date and time: #error.DateTime# <br>
Page: #error.template# <br>
Remote Address: #error.remoteAddress# <br>
HTTP Referer: #error.HTTPReferer#<br>
<br>
Diagnostics:<br>
#error.diagnostics#
Description
Text for header of default validation
message.
Unordered list of validation errors that
occurred. This includes any text that
you specify in the value attribute or a
hidden tag used to validate form input.
Text for footer of default validation
message.
201

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents