}
else {
// job failed too often: log
- if ($e instanceof LoggedException) $e->getExceptionID();
+ \wcf\functions\exception\logThrowable($e);
}
}
finally {
}
catch (\Exception $e) {
// job is completely broken: log
- if ($e instanceof LoggedException) $e->getExceptionID();
+ \wcf\functions\exception\logThrowable($e);
}
finally {
// remove entry of processed job
}
catch (PermanentFailure $e) {
// no need for retrying. Eat Exception and log the error.
- $e->getExceptionID();
+ \wcf\functions\exception\logThrowable($e);
}
}
}
}
catch (\Exception $e) {
// job is completely broken: log
- if ($e instanceof LoggedException) $e->getExceptionID();
+ \wcf\functions\exception\logThrowable($e);
}
}
<?php
namespace wcf\system\email\transport\exception;
-use wcf\system\exception\SystemException;
/**
* Denotes a permanent failure during delivery. It should not be retried later.
* @category Community Framework
* @since 2.2
*/
-class PermanentFailure extends SystemException { }
+class PermanentFailure extends \Exception { }
<?php
namespace wcf\system\email\transport\exception;
-use wcf\system\exception\SystemException;
/**
* Denotes a transient failure during delivery. It may be retried later.
* @category Community Framework
* @since 2.2
*/
-class TransientFailure extends SystemException { }
+class TransientFailure extends \Exception { }
throw new UserInputException('recaptchaString', 'false');
}
}
- catch (SystemException $e) {
+ catch (\Exception $e) {
// log error, but accept captcha
- $e->getExceptionID();
+ \wcf\functions\exception\logThrowable($e);
}
WCF::getSession()->register('recaptchaDone', true);
WCF::getDB()->commitTransaction();
break;
}
- catch (SystemException $e) {
+ catch (\Exception $e) {
WCF::getDB()->rollbackTransaction();
// retry up to 2 times
if (++$i === 2) {
- $e->getExceptionID();
+ \wcf\functions\exception\logThrowable($e);
break;
}