22.08.2013 Views

ColdFusion Developer's Guide

ColdFusion Developer's Guide

ColdFusion Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta<br />

Code Description<br />

<br />

Missing Include File<br />

<br />

<br />

Message: #cfcatch.Message#<br />

Detail: #cfcatch.Detail#<br />

File name:<br />

#cfcatch.MissingFilename#<br />

<br />

<br />

<br />

<br />

<br />

Database Error<br />

<br />

<br />

Message: #cfcatch.Message#<br />

Native error code:<br />

#cfcatch.NativeErrorCode#<br />

SQLState: #cfcatch.SQLState#<br />

Detail: #cfcatch.Detail#<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Other Error: #cfcatch.Type#<br />

<br />

Message: #cfcatch.message#<br />

Detail: #cfcatch.Detail#<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

388 Handling Errors<br />

Handles exceptions thrown when a page<br />

specified by the cfinclude tag cannot be<br />

found.<br />

Displays cfcatch variables, including the<br />

<strong>ColdFusion</strong> basic error message, detail<br />

message, and the name of the file that<br />

could not be found.<br />

Sets the errorCaught variable to indicate<br />

the error type.<br />

Handles exceptions thrown when<br />

accessing a database.<br />

Displays cfcatch variables, including the<br />

<strong>ColdFusion</strong> basic error message, the<br />

error code and SQL state reported by<br />

the databases system, and the detailed<br />

error message.<br />

Sets the errorCaught variable to indicate<br />

the error type.<br />

Handles any other exceptions generated<br />

in the cftry block.<br />

Since the error can occur after<br />

information has displayed (in this case,<br />

the contents of the include file), draws a<br />

line before writing the message text.<br />

Displays the <strong>ColdFusion</strong> basic and<br />

detailed error message.<br />

Sets the errorCaught variable to indicate<br />

the error type.<br />

Ends the HTML page, then the cftry<br />

block.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!