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 3
3
namespace Omnipay \Braintree \Message ;
4
4
5
5
use Braintree \Exception \NotFound ;
6
- use Omnipay \ Common \ Exception \NotFoundException ;
6
+ use Symfony \ Component \ HttpKernel \ Exception \NotFoundHttpException ;
7
7
8
8
/**
9
9
* Find Customer Request
@@ -22,14 +22,14 @@ public function getData()
22
22
* @param mixed $data
23
23
*
24
24
* @return \Omnipay\Braintree\Message\CustomerResponse|\Omnipay\Common\Message\ResponseInterface
25
- * @throws \Omnipay\Common\ Exception\NotFoundException
25
+ * @throws \Symfony\Component\HttpKernel\ Exception\NotFoundHttpException
26
26
*/
27
27
public function sendData ($ data )
28
28
{
29
29
try {
30
30
$ response = $ this ->braintree ->customer ()->find ($ this ->getCustomerId ());
31
31
} catch (NotFound $ exception ) {
32
- throw new NotFoundException ($ exception ->getMessage ());
32
+ throw new NotFoundHttpException ($ exception ->getMessage ());
33
33
}
34
34
35
35
return $ this ->response = new CustomerResponse ($ this , $ response );
You can’t perform that action at this time.
0 commit comments