From: <ndi...@us...> - 2002-09-03 22:27:49
|
Update of /cvsroot/modus/org/bacfug/modus/errors In directory usw-pr-cvs1:/tmp/cvs-serv20178/bacfug/modus/errors Modified Files: baseerror.cfc Log Message: fixed bug in which I (stupidly) defined the init method twice Index: baseerror.cfc =================================================================== RCS file: /cvsroot/modus/org/bacfug/modus/errors/baseerror.cfc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** baseerror.cfc 2 Sep 2002 21:42:08 -0000 1.1 --- baseerror.cfc 3 Sep 2002 22:27:41 -0000 1.2 *************** *** 1,16 **** <cfcomponent displayname="baseError" hint="The base component for a Modus error"> <cfparam name="instance" default="#structNew()#"> - <cffunction name="init" access="public" hint="The initializer -- run it every time you instantiate"> - <cfscript> - //it's type - instance.type = "modus"; - //the message - instance.message = "An error occurred."; - //the detail - instance.detail = "An unspecified error occurred."; - </cfscript> - <cfreturn this> - </cffunction> - <!--- init, to set type, message, detail ---> <cffunction name="init" access="public" output="no" hint="initialize the error"> --- 1,4 ---- *************** *** 19,22 **** --- 7,16 ---- <cfargument name="detail" required="no" default="#instance.detail#" type="string"> <cfscript> + //it's type + instance.type = "modus"; + //the message + instance.message = "An error occurred."; + //the detail + instance.detail = "An unspecified error occurred."; setMessage(arguments.message); setType(arguments.type); |