<?xml version="1.0"?><phpdoc><class name="Bs_Exception" extends="Bs_Object" undoc="false" access="public" package="lang"><file>C:/usr/local/lib/php/blueshoes-4.2/core/lang/Bs_Exception.class.php</file><doc><author>Andrej Arn &amp;lt;andrej at blueshoes dot org&amp;gt;</author><inherited src="Array"/><overriden src="Array"/><description>no dependencies here. please try to avoid dependencies.</description><shortdescription>Emulate a Java exception, sort of...</shortdescription><version>4.0.$id$</version><copyright>blueshoes.org</copyright></doc><function name="Bs_Exception" undoc="false" access="public"><doc><parameter name="$message" default="&amp;apos;&amp;apos;" type="string">an error message</parameter><parameter name="$file" default="&amp;apos;&amp;apos;" type="string">the file name (full path), use __FILE__</parameter><parameter name="$line" default="&amp;apos;&amp;apos;" type="string">the line number, use __LINE__</parameter><parameter name="$errCode" default="NULL," type="string">a unique error code with text info: db:26:not connected</parameter><parameter name="$weight" default="&amp;apos;&amp;apos;" type="string">the weight of the exception (fatal?)</parameter><return type="void"/><description>example:return new Bs_Exception(&amp;apos;not a valid usDatetime specified&amp;apos;, __FILE__, __LINE__);</description><shortdescription>Constructor</shortdescription></doc></function><function name="setStackParam" undoc="false" access="private"><doc><parameter name="$key" type="string">can be one of &amp;apos;functionArgs&amp;apos;, &amp;apos;vars&amp;apos;, &amp;apos;objects&amp;apos;</parameter><parameter name="$val" type="array"/><return name="" type="bool">true on success, false if $key is not a known param.&#x0a;&#x0a;&amp;apos;functionArgs&amp;apos; =&amp;gt; array of vars that were passed to the function, get them with func_get_args(), see the example.&#x0a;&amp;apos;vars&amp;apos;         =&amp;gt; associative array of some vars you want to pass along.&#x0a;&amp;apos;objects&amp;apos;      =&amp;gt; array of some objects you want to pass along.&#x0a;&#x0a;note: if you want to pass the functionArgs, you cannot do it all in one line. it&amp;apos;s not possible&#x0a;to use the function func_get_args() as function parameter :( see example.&#x0a;&#x0a;example for &amp;apos;functionArgs&amp;apos;:&#x0a;$funcArgs = func_get_args();&#x0a;$success = $Obj-&amp;gt;setStackParam(&amp;apos;functionArgs&amp;apos;, $funcArgs);&#x0a;&#x0a;example for &amp;apos;vars&amp;apos;:&#x0a;$success = $Obj-&amp;gt;setStackParam(&amp;apos;vars&amp;apos;, array(&amp;apos;myVar&amp;apos; =&amp;gt; &amp;$myVar));&#x0a;&#x0a;example for &amp;apos;objects&amp;apos;:&#x0a;$success = $Obj-&amp;gt;setStackParam(&amp;apos;objects&amp;apos;, array(&amp;$this));</return><description/><shortdescription/></doc></function><function name="_processParams" undoc="false" access="private"><doc><see type="function">Bs_Exception()</see><see type="function">stackTrace()</see><parameter name="$message" type="string">an error message</parameter><parameter name="$file" type="string"/><parameter name="$line" type="int"/><return name="" type="array">an associative array</return><description/><shortdescription>gets called from the constructor and from stackTrace(). returns a useful aArray that will be added to $this-&amp;gt;stack.</shortdescription></doc></function><function name="stackTrace" undoc="false" access="public"><doc><see type="function">Bs_Exception()</see><parameter name="$message" default="&amp;apos;&amp;apos;" type="string">an error message</parameter><parameter name="$file" default="&amp;apos;&amp;apos;" type="string">the file name (full path), use __FILE__</parameter><parameter name="$line" default="&amp;apos;&amp;apos;" type="string">the line number, use __LINE__</parameter><parameter name="$weight" default="&amp;apos;&amp;apos;" type="string">the weight of the exception (fatal?)</parameter><return type="void"/><description/><shortdescription/></doc></function><function name="stackDump" undoc="false" access="public"><doc><parameter name="$what" default="&amp;apos;&amp;apos;" type="string">what you want to do. see text.</parameter><return type="void"/><description>param $what options:&amp;apos;&amp;apos;       =&amp;gt; Default. trigger a warning.&amp;apos;log&amp;apos;    =&amp;gt; Log the exception.&amp;apos;alert&amp;apos;  =&amp;gt; Email this alert to the ppl in the alert list and log the exception.&amp;apos;echo&amp;apos;   =&amp;gt; Echo the exception to the screen. Use this only for debugging. please.&amp;apos;die&amp;apos;    =&amp;gt; Echo the exception to the screen and die. Use this only for debugging. please.&amp;apos;return&amp;apos; =&amp;gt; Return the toHtml string of this exception.</description><shortdescription>Dumps the stack to where you specify.</shortdescription></doc></function><function name="seedGlobals" undoc="false" access="public"><doc><return type="void"/><description>this includes:HTTP_POST_VARS, HTTP_GET_VARS, HTTP_COOKIE_VARS, HTTP_SERVER_VARS,HTTP_ENV_VARS, HTTP_POST_FILES, a string of all declared classes,a varDump of our own settings array $APP, our own flat vars that are visible global,a varDump of our own flat arrays that are visible global (without $APP),theDon&amp;apos;t use this for fun! It&amp;apos;s expensive!If it has already been done for this instance, we don&amp;apos;t do it again but just ignore the request.</description><shortdescription>Grabs all information we can about the current state of the php file.</shortdescription></doc></function><function name="toString" undoc="true" access="public"><doc><return name="" type="string"/><overriden src="Bs_Object"/><description/><shortdescription>Prepares the stack to spit it out.</shortdescription></doc></function><function name="_toHtml" undoc="false" access="private"><doc><see type="function">toString()</see><return name="" type="string"/><description/><shortdescription>Puts &amp;lt;pre&amp;gt;&amp;lt;/pre&amp;gt; around the string we grab from toString().</shortdescription></doc></function><function name="func_get_args" undoc="true" access="private"><doc><parameter name="$funcArgs" type="string" undoc="true"/><parameter name="$success" type="string" undoc="true"/><parameter name="$funcArgs" undoc="true"/><parameter name="$success" type="string" undoc="true"/><parameter name="&amp;$myVar" undoc="true"/><parameter name="&amp;$myVar" undoc="true"/><parameter name="&amp;$myVar" undoc="true"/><parameter name="$success" type="string" undoc="true"/><parameter name="&amp;$this" undoc="true"/><parameter name="&amp;$this" undoc="true"/><parameter name="$key" undoc="true"/><parameter name="$key" undoc="true"/><parameter name="$key" undoc="true"/><parameter name="$key" undoc="true"/><parameter name="$key" undoc="true"/><parameter name="$key" undoc="true"/><parameter name="$val" undoc="true"/><parameter name="$val" undoc="true"/><return type="void"/></doc></function><function name="x" undoc="true" access="private"><doc><parameter name="$x" type="string" undoc="true"/><return type="void"/></doc></function><variable name="$_Bs_String" access="private" type="unknown"><doc><description>@private</description><shortdescription>I wanted to make this class completly independant. but toString() and seedGlobals() need $Bs_String-&amp;gt;varDump().</shortdescription></doc></variable><variable name="$_weight" access="private" type="unknown"><doc><description/><shortdescription>String indicating the exception weight.</shortdescription></doc></variable><variable name="$_errCode" access="private" type="int"><doc><description/><shortdescription>The error code if one is set.</shortdescription></doc></variable><variable name="$_errText" access="private" type="string"><doc><description/><shortdescription>The error text if one is set.</shortdescription></doc></variable><variable name="$_errType" access="private" type="string"><doc><description/><shortdescription>Type of the error (if set). can be one of db, ...</shortdescription></doc></variable><variable name="$_stack" access="private" type="unknown"><doc><description>Holds the elements: ($stack[x][&amp;apos;element&amp;apos;])$stack[0] is when the error gets thrown, [1] for the first addToStack, ...timestamp       =&amp;gt; a us-style datetime that is created in this classmessage         =&amp;gt; a string error messagefile            =&amp;gt; the full file name with pathline            =&amp;gt; the line number in the filefunctionArgs    =&amp;gt; an array holding the arguements which were passes to the function where the error occured.vars            =&amp;gt; an associative array holding vars that were passed by param.objects         =&amp;gt; an array holding copies of objects that were passed by param.</description><shortdescription>Array holding assotiative arrays of the params we get when an exception gets thrown or a stackTrace is done.</shortdescription></doc></variable><variable name="$_globals" access="private" type="unknown"><doc><description>Holds the elements: ($globals[&amp;apos;element&amp;apos;])postVars        =&amp;gt; an assotiative array holding the vars we got from an http post.getVars         =&amp;gt; an assotiative array holding the vars we got from an http get.cookieVars      =&amp;gt; an assotiative array holding the cookie vars.serverVars      =&amp;gt; an assotiative array holding the server vars.envVars         =&amp;gt; an assotiative array holding the environment vars.postFiles       =&amp;gt; something holding the post files. dunno.appVars         =&amp;gt; string of the dumped array $APP. THIS MIGHT BE A SECURITY HOLE IF PASSWORDS GET WRITTEN OR SENT TO SOMEWHERE!!!globalVars      =&amp;gt; assotiative array of all not-system-vars.globalArrays    =&amp;gt; assotiative array of all not-system-arrays. the values are dumped.globalObjects   =&amp;gt; assotiative array (key is the object name) holding strings of the dumped objects. THIS MIGHT BE A SECURITY HOLE IF PASSWORDS ARE IN AN OBJECT AND GET WRITTEN OR SENT TO SOMEWHERE!!!declaredClasses =&amp;gt; an array holding the class names of all defined classes. only set if weight=&amp;apos;fatal&amp;apos;.if ($this-&amp;gt;_weight == &amp;apos;fatal&amp;apos;) {$ret[&amp;apos;declaredClasses&amp;apos;] = get_declared_classes();}@private</description><shortdescription>Assotiative array with things we got from $GLOBALS.</shortdescription></doc></variable><constant name="BS_EXCEPTION_VERSION" undoc="true" access="private" case="default: case sensitive">4.0.$x$<doc></doc></constant><inherited src="Bs_Object" type="functions"><element>isex</element><element>isexception</element><element>tohtml</element><element>persist</element><element>unpersist</element><element>bs_object</element><element>bbsetoutput</element><element>bbawake</element><element>bbisawake</element><element>bbxmsg</element><element>bbxfunctionstart</element><element>bbxfunctionend</element><element>bbxecho</element><element>bbxvar</element><element>bbxvardump</element><element>bbforcetrace</element><element>bbbufferstart</element><element>bbbufferget</element><element>bbbufferendflush</element><element>bbbufferendclean</element></inherited><inherited src="Bs_Object" type="consts"><element>bs_object_version</element></inherited><path><parent>Bs_Object</parent></path><baseclass>Bs_Object</baseclass></class></phpdoc>