This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\WebService\Laboratorio\Cliente\Exame;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class CannotDeleteExameException extends Exception
|
||||
{
|
||||
public function render()
|
||||
{
|
||||
return response()->json([
|
||||
'message' => 'O exame não pode ser excluído, pois possui vínculo com pedido(s) de exame em processamento.'
|
||||
], Response::HTTP_BAD_REQUEST);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\WebService\Laboratorio\Cliente\Exame;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class ExameNotFoundException extends Exception
|
||||
{
|
||||
public function render()
|
||||
{
|
||||
return response()->json([
|
||||
'message' => 'Exame não encontrado.'
|
||||
], Response::HTTP_NOT_FOUND);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user