* @param $responseInstance An instance of a class with an Responseable interface
* @return void
* @throws NullPointerException If the user instance from registry is null
+ * @throws FilterChainException If this filter fails to operate
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get confirmation code from request
$responseInstance->addFatalMessage('confirm_code_unset');
// Abort here
- return false;
+ throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
} elseif (empty($confirmCode)) {
// Email is empty
$requestInstance->requestIsValid(false);
$responseInstance->addFatalMessage('confirm_code_empty');
// Abort here
- return false;
+ throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
}
// Get a user instance from registry