File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33namespace Omnipay \Braintree \Message ;
44
55use Braintree \Exception \NotFound ;
6- use Omnipay \ Common \ Exception \NotFoundException ;
6+ use Symfony \ Component \ HttpKernel \ Exception \NotFoundHttpException ;
77
88/**
99 * Find Customer Request
@@ -22,14 +22,14 @@ public function getData()
2222 * @param mixed $data
2323 *
2424 * @return \Omnipay\Braintree\Message\CustomerResponse|\Omnipay\Common\Message\ResponseInterface
25- * @throws \Omnipay\Common\ Exception\NotFoundException
25+ * @throws \Symfony\Component\HttpKernel\ Exception\NotFoundHttpException
2626 */
2727 public function sendData ($ data )
2828 {
2929 try {
3030 $ response = $ this ->braintree ->customer ()->find ($ this ->getCustomerId ());
3131 } catch (NotFound $ exception ) {
32- throw new NotFoundException ($ exception ->getMessage ());
32+ throw new NotFoundHttpException ($ exception ->getMessage ());
3333 }
3434
3535 return $ this ->response = new CustomerResponse ($ this , $ response );
You can’t perform that action at this time.
0 commit comments