Your IP : 216.73.217.69


Current Path : /home/semix18/public_html/optimum-wycena.pl/core/exceptions/
Upload File :
Current File : /home/semix18/public_html/optimum-wycena.pl/core/exceptions/exception.dobiExcModule.php

<?php
/**
*	Dobi System
*
*	Terms of use and legal restrictions:
*   PLEASE READ THESE TERMS ( www.dobi.pl/doc/license/ ) CAREFULLY BEFORE USING THIS PRODUCT. 
*	USING THIS PRODUCT INDICATES THAT YOU ACCEPT THESE TERMS. 
*	IF YOU DO NOT ACCEPT THESE TERMS , DO NOT USE THIS PRODUCT.
*
*	PHP 5.1.2 and later 
*
*	@license	www.dobi.pl/doc/license/ Dobi License 1.0
*   @copyright	Copyright (c) 2005-2006 Michał 'Cube' Daniel ( http://www.dobi.pl )
* 	@link		www.dobi.pl
*	@package	Dobi Core
*	@version 	1.0, 2006/08/10 11:57
*   @author		Michał 'Cube' Daniel cube@dobi.pl		
*
*/
class dobiExcModule extends Exception 
{
	
   public function __construct($message = NULL, $code = 0)
   {
	   $this->message = $message;
   }
     
   public function getErrorMsg()
   {
       $arr = explode('#', $this->getTraceAsString());
       $file = $arr[1];
       $pos1 = strpos($file, '(');
       $pos2 = strpos($file, ')');
       $line = substr($file, ($pos1 + 1), ($pos2 - $pos1 - 1));
       $file = substr($file, 2, ($pos1 - 2));
       $content = '<h3><span style="font-weight: bold;">Dobi System:</span> wystąpił błąd. </h3><br />';
       $content .= '<span style="font-style: italic;">Opis błędu:</span> <span style="font-weight: bold;">' . $this->message . '</span><br />';
       $content .= '<span style="font-style: italic;">Lokalizacja wyjątku:</span> <span style="font-weight: bold;">' . $file . '</span> <br /> <span style="font-style: italic;">Nr lini:</span> <span style="font-weight: bold;">' . $line . '</span> <br /><br />';
       $content .= '<span style="font-style: italic;">Przebieg wykonywania skryptu:</span>  <br />';
       for ($a = 0; $a < count($arr); $a++)
       {
			$content .= $arr[$a] . '<br />';
	   }
       return $content;      	
   }       
}

?>