22 lines
420 B
PHP
22 lines
420 B
PHP
<?php
|
|
|
|
namespace Modules\Coupon\Exceptions;
|
|
|
|
use Exception;
|
|
use Illuminate\Http\Response;
|
|
|
|
class InvalidCouponException extends Exception
|
|
{
|
|
/**
|
|
* Render the exception into an HTTP response.
|
|
*
|
|
* @return Response
|
|
*/
|
|
public function render()
|
|
{
|
|
return response()->json([
|
|
'message' => trans('coupon::messages.invalid_coupon'),
|
|
], 403);
|
|
}
|
|
}
|