public function captureException(Exception $exception, $sneaking = false)
    {
        try {
            if ($this->isSilent()) {
                return;
            }

            if ($this->isExceptionFromBot()) {
                return;
            }

            if ($this->shouldCapture($exception)) {
                $this->capture($exception);
            }
        } catch (Exception $e) {
            $this->logger->error(sprintf(
                'Exception thrown in Sneaker when capturing an exception (%s: %s)',
                get_class($e), $e->getMessage()
            ));

            $this->logger->error($e);

            if ($sneaking) {
                throw $e;
            }
        }
    }
public function captureException(Exception $exception, $sneaking = false)
    {
        try {
            if ($this->isSilent()) {
                return;
            }

            if ($this->isExceptionFromBot()) {
                return;
            }

            if ($this->shouldCapture($exception)) {
                $this->capture($exception);
            }
        } catch (Exception $e) {
            $this->logger->error(sprintf(
                'Exception thrown in Sneaker when capturing an exception (%s: %s)',
                get_class($e), $e->getMessage()
            ));

            $this->logger->error($e);

            if ($sneaking) {
                throw $e;
            }
        }
    }
public function captureException ( Exception $ exception , $ sneaking = false ) { try { if ( $ this -> isSilent ( ) ) { return ; } if ( $ this -> isExceptionFromBot ( ) ) { return ; } if ( $ this -> shouldCapture ( $ exception ) ) { $ this -> capture ( $ exception ) ; } } catch ( Exception $ e ) { $ this -> logger -> error ( sprintf ( 'Exception thrown in Sneaker when capturing an exception (%s: %s)' , get_class ( $ e ) , $ e -> getMessage ( ) ) ) ; $ this -> logger -> error ( $ e ) ; if ( $ sneaking ) { throw $ e ; } } }
Checks an exception which should be tracked and captures it if applicable.

@param  \Exception $exception
@return void
Checks an exception which should be tracked and captures it if applicable .