Files
wordpress-preseed/wp-content/plugins/all-in-one-event-calendar/lib/exception/ai1ec.php
Adrian Nöthlich 290736650a Add upstream plugins
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
2019-10-25 22:42:20 +02:00

52 lines
1.0 KiB
PHP

<?php
/**
* Abstract base class for all our excpetion.
*
* @author Time.ly Network Inc.
* @since 2.0
*
* @package AI1EC
* @subpackage AI1EC.Exception
*/
class Ai1ec_Exception extends Exception {
/**
* A message to be displayed for admin
*
* Specific Exceptions should override this.
*
* @return string Message to be displayed for admin
*/
public function get_html_message() {
return $this->getMessage();
}
/**
* Return the èath of the plugin to disable it.
* If empty it disables core.
*
* @return string
*/
public function plugin_to_disable() {
return '';
}
/**
* Returns destination URL if exception handler redirects.
*
* @return string Result.
*/
public function get_redirect_url() {
return ai1ec_get_admin_url();
}
/**
* Defined whether exception handler should attach backtrace or not.
*
* @return bool Value.
*/
public function display_backtrace(){
return true;
}
}