PHP Classes

File: error.lib.php

Recommend this page to a friend!
  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: 22 years ago
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>"; } } } ?>