Using less different types of exceptions is cleaner- our own exception is pretty much our go-to
so using here
* @param int $limit
* How many recent messages to remove, defaults to 0 (all).
*
- * @throws \Exception
+ * @throws \CRM_Core_Exception
*/
public function clearMessages($limit = 0) {
if ($this->_webtest) {
- throw new Exception("Not implemented: clearMessages for WebTest");
+ throw new \CRM_Core_Exception("Not implemented: clearMessages for WebTest");
}
else {
$sql = 'DELETE FROM civicrm_mailing_spool ORDER BY id DESC';
/**
* Test email receipt for partial payment.
+ *
+ * @throws \CRM_Core_Exception
*/
public function testPaymentEmailReceiptFullyPaid() {
$mut = new CiviMailUtils($this);