public function reject(RejectEnvelopeEvent $event)
    {
        if (!function_exists('newrelic_end_transaction')) {
            return;
        }

        newrelic_notice_error($event->getEnvelope()->getName(), $event->getException());
        newrelic_end_transaction();
    }
public function reject(RejectEnvelopeEvent $event)
    {
        if (!function_exists('newrelic_end_transaction')) {
            return;
        }

        newrelic_notice_error($event->getEnvelope()->getName(), $event->getException());
        newrelic_end_transaction();
    }
public function reject ( RejectEnvelopeEvent $ event ) { if ( ! function_exists ( 'newrelic_end_transaction' ) ) { return ; } newrelic_notice_error ( $ event -> getEnvelope ( ) -> getName ( ) , $ event -> getException ( ) ) ; newrelic_end_transaction ( ) ; }
Reject is called when a task throws an exception

@param RejectEnvelopeEvent $event
Reject is called when a task throws an exception