Login   Register  
PHP Classes
elePHPant
Icontem

File: error.lib.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of yanghisun  >  ASP Emulator  >  error.lib.php  >  Download  
File: error.lib.php
Role: ???
Content type: text/plain
Description: include by asp.lib.php
Class: ASP Emulator
Author: By
Last change:
Date: 2001-09-20 03:50
Size: 933 bytes
 

Contents

Class file image Download
<?
   class clserror{
         var $number=0;
         var $description="";
         var $source;
         var $isfotalerr=false;
         function clear(){
                  $this->numbe=0;
                  $this->description="";
                  $this->source=null;
                  $this->isfotalerr=false;
         }
         function clserror(){
                  return $this;
         }
         function raise(){
                  $errmsg="Error at:".$this->source."<br>";
                  $errmsg.="Error number:".$this->number."<br>";
                  $errmsg.="Error Description:".$this->description."<br>";
                  if($this->isfotalerr){
                     die("<font color=red>Fotal Error:<hr>$errmsg</font>");
                  }
                  else{
                       echo "<font color=blue>Generic Error:<hr>$errmsg</font>";
                  }
         }

   }
?>