1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/Exceptions/PaymentRefundFailed.php

32 lines
529 B
PHP
Raw Normal View History

<?php
namespace App\Exceptions;
use Exception;
class PaymentRefundFailed extends Exception
{
/**
* Report the exception.
*
* @return void
*/
public function report()
{
//
}
/**
* Render the exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function render($request)
{
return response()->json([
'message' => 'Unable to refund the transaction'
], 401);
}
}