•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 427,758 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,705 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser: Programming Forums
Views: 4431 | Replies: 5
![]() |
I meant, what can I use to throw errors inside functions.
<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:
Rep Power: 0
Solved Threads: 0
•
•
•
•
Originally Posted by red_evolve
It's okay
Still waiting for someone who could help me with this.
Has been a while... but if you're still stuck you could try this.... Works for me on CF7.
<cffunction name="throw">
<cfargument name="message">
<cfthrow message="#arguments.message#">
</cffunction>
<cfscript>
throw("Error message here!");
</cfscript>
![]() |
•
•
•
•
•
•
•
•
DaniWeb ColdFusion Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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



Linear Mode