Oleg,

We have a set of user-defined functions that mimic CF functions not
available in CFScript that we include in many of our applications. 
For example, we define throw(), throwType(), and rethrow():

<cffunction name="Throw" returntype="void" output="no" access="public" >
  <cfargument name="Message" type="string" required="false" default="" >
        <cfthrow message="#Arguments.Message#" >
</cffunction>

<cffunction name="ThrowType" returntype="void" output="no" access="public" >
  <cfargument name="ExceptionType" type="string" required="true" >
  <cfargument name="Message" type="string" required="false" default="" >
        <cfthrow type="#Arguments.ExceptionType#" message="#Arguments.Message#" 
>
</cffunction>

<cffunction name="Rethrow" returntype="void" output="no" access="public" >
  <cfargument name="Exception" required="true" >
        <cfthrow object="#Arguments.Exception#" >
</cffunction>

Jon


On 3/29/06, Oleg Gunkin <[EMAIL PROTECTED]> wrote:
> What's the equivalent to cfthrow inside cfscript?
>
> try{
>         ...
> }catch(Any e){
>         //Throw new exception
> }
>
> --
> Oleg Gunkin
> Email: [EMAIL PROTECTED]
> Phone: (604) 666-9392
> Emerging Technologies / Pacific Web Services
> Information Technology Services
> Public Works and Government Services Canada (Pacific)
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236613
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to