| | |
Error Handling in CFSCRIPT
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
I meant, what can I use to throw errors inside functions.
ColdFusion Syntax (Toggle Plain Text)
<cfscript> function foo(){ if(x == 0) // throw error } </cfscript>
"Study the past if you would define the future" - Confucius
•
•
Join Date: Mar 2006
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by red_evolve
It's okay
Still waiting for someone who could help me with this.
<cffunction name="throw">
<cfargument name="message">
<cfthrow message="#arguments.message#">
</cffunction>
<cfscript>
throw("Error message here!");
</cfscript>
![]() |
Similar Threads
- Compilation Error Handles cmdLogin.ServerClick (ASP.NET)
- Another mysql_num_rows(): error (PHP)
- Keyboard Error Handling (C++)
Other Threads in the ColdFusion Forum
- Previous Thread: Stopping entries into database
- Next Thread: Show Numbers of Deleted entries from database
| Thread Tools | Search this Thread |






