Whatever message this page gives is out now! Go check it out!
Category | Description |
Program errors | Can be in the code syntax or the program logic. The ColdFusion compiler identifies and reports program syntax errors when it compiles CFML into Java classes. Errors in your application logic are harder to locate. For information on debugging tools and techniques, see Debugging and Troubleshooting Applications.Unlike ColdFusion syntax errors, SQL syntax errors are only caught at runtime. |
Data errors | Are typically user data input errors. You use validation techniques to identify errors in user input data and enable the user to correct the errors. |
System errors | Can come from a variety of causes, including database system problems, time-outs due to excessive demands on your server, out-of-memory errors in the system, file errors, and disk errors. |
Type | Description |
Exception | An error that prevents normal processing from continuing. All ColdFusion exceptions are, at their root, Java exceptions. |
Missing template | An HTTP request for a ColdFusion page that cannot be found. Generated if a browser requests a ColdFusion page that does not exist.Missing template errors are different from missing include exceptions, which result from cfinclude tags or custom tag calls that cannot find their targets. |
Form field data validation | Server-side form field validation errors are a special kind of ColdFusion exception. You specify server-side form validation by using cfform attributes or hidden HTML form fields. All other types of server-side validation, such as the cfparam tag generate runtime exceptions. For more information on validating form fields see Validating data.ColdFusion includes a built-in error page for server-side form field validation errors, and the cferror tag includes a type attribute that lets you handle these errors in a custom error page, but if you use onError processing in Application.cfc, or try/catch error handling, the error appears as an Application exception. For more information on handling Form field validation in Application. cfc see Handling server-side validation errors in the on Error method in Defining the application and its event handlers in Application.cfc. |
Type | Type name | Description |
Database failures | Database | Failed database operations, such as failed SQL statements, ODBC problems, and so on. |
Missing include file errors | MissingInclude | Errors where files specified by the cfinclude , cfmodule , and cferror tags are missing. (A cferror tag generates a missingInclude error only when an error of the type specified in the tag occurs.)The MissingInclude error type is a subcategory of Template error. If you do not specifically handle the MissingInclude error type, but do handle the Template error type, the Template error handler catches these errors. MissingInclude errors are caught at runtime. |
Template errors | Template | General application page errors, including invalid tag and attribute names. Most Template errors are caught at compile time, not runtime. |
Object exceptions | Object | Exceptions in ColdFusion code that works with objects. |
Security exceptions | Security | Catchable exceptions in ColdFusion code that works with security. |
Expression exceptions | Expression | Failed expression evaluations; for example, if you try to add 1 and "a". |
Locking exceptions | Lock | Failed locking operations, such as when a cflock critical section times out or fails at runtime. |
Application-defined exception events raised by cfthrow | Application | Custom exceptions generated by a cfthrow tag that do not specify a type, or specify the type as Application. |
All exceptions | Any | Any exceptions. Includes all types in this table and any exceptions that are not handled in another error handler, including unexpected internal and external errors. |
<cfcatch type="java.io.IOException">Condition | Action |
The code with the error is inside a cftry tag and the exception type is specified in a cfcatch tag. | |
The ColdFusion application has an Application.cfc with an onError method | Executes the code in the onError method. For more information on using the onError method, see Handling errors in Application.cfc in Defining the application and its event handlers in Application.cfc. |
A cferror tag specifies an exception error handler for the exception type. | Uses the error page specified by the cferror tag. |
The Administrator Settings Site-wide Error Handler field specifies an error handler page. | Uses the custom error page specified by the Administrator setting. |
A cferror tag specifies a Request error handler. | Uses the error page specified by the cferror tag. |
The default case. | Uses the standard error message format |