* @param string extensionId An extension ID. * @return mixed */ public function setExtensionId($extensionId) { $this->extensionId = $extensionId; } /** * Get the extension ID related to the exception * * @access public * @author Jerome Bogaerts, * @return string */ public function getExtensionId() { $returnValue = (string) ''; $returnValue = $this->extensionId; return (string) $returnValue; } /** * Creates a new instance of ExtensionException. * * @access public * @author Jerome Bogaerts, * @param string message * @param string extensionId * @return mixed */ public function __construct($message, $extensionId = 'unknown') { parent::__construct($message); $this->setExtensionId($extensionId); } /** * Get the severity of the error. * * @access public * @return int */ public function getSeverity() { return common_Logger::ERROR_LEVEL; } }