17 lines
385 B
PHP
17 lines
385 B
PHP
<?php
|
|
|
|
namespace App\Exceptions\WebService\Almoxarifado\Cliente\Entrada;
|
|
|
|
use Exception;
|
|
use Illuminate\Http\Response;
|
|
|
|
class CannotDeleteEntradaAprovadaException extends Exception
|
|
{
|
|
public function render()
|
|
{
|
|
return response()->json([
|
|
'message' => 'A entrada não pode ser excluída, pois já foi aprovada.'
|
|
], Response::HTTP_BAD_REQUEST);
|
|
}
|
|
}
|