HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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 />' .
				   '';
		}
	}
}