public function testEnterpriseSecurityException() { $e = new EnterpriseSecurityException("This is a message for users.", "This is a message for the log."); $this->assertEquals($e->getUserMessage(), "This is a message for users."); $this->assertEquals($e->getLogMessage(), "This is a message for the log."); }
/** * Instantiates a new access control exception. * * @param string $userMessage The message displayed to the user * @param string $logMessage the message logged * * @return does not return a value. */ public function __construct($userMessage = '', $logMessage = '') { parent::__construct($userMessage, $logMessage); }
/** * Instantiates a new ValidationException. * Create a new ValidationAvailabilityException * * @param string $userMessage the message displayed to the user * @param string $logMessage the message logged * @param string $context the source that caused this exception * * @return does not return a value. */ function __construct($userMessage = '', $logMessage = '', $context = '') { parent::__construct($userMessage, $logMessage); $this->setContext($context); }