• Sign in

web / newhome · Files

Dogs2 white

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Forks
  • Snippets
  • Network
  • newhome
  • libs
  • myexception.php
  • Initial repository layout
    9bfac247
    Georg Hopp authored
    2016-03-19 12:51:30 +0100  
    Browse Files »
myexception.php 343 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php

abstract class MyException extends Exception
{
	protected $msg = array ();

	public function __construct ($code)
	{
		parent::__construct ($this->msg [$code], $code);
	}

	public function __toString ()
	{
		return __CLASS__ . "[{$this->code}] at " . $this->getFile () .
		       "(" . $this->getLine . "): {$this->message}\n";
	}
}

?>