File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/cms/api/exceptions/exception.view.php
<?php
/**
* This file will hold the iwp_exception_view for use with the iwp_view object
*
* @package IWP
**/
/**
* This is the iwp_exception_view object for exceptions generated in the iwp_view object
*
* @package IWP
**/
if(!class_exists('iwp_exception_view', false)) {
class iwp_exception_view extends Exception {
/**
* The default contructor will take the message and store it
*
* @param String $message The exception error message
**/
public function __construct($message) {
$this->message = $message;
}
/**
* Will return just the error message, as we don't need anything else for toString
*
* @return String
**/
public function __toString() {
return $this->message;
}
/**
* This will return all information regarding the exception
*
* @return String
**/
public function getDebugText() {
return 'Exception: ' . $this->message . '<br />' .
'On file [line]: ' . $this->file . ' [' . $this->line . ']<br />' .
'';
}
}
}