17 lines
409 B
PHP
17 lines
409 B
PHP
<?php
|
|
|
|
namespace App\Exceptions\ProntoAtendimento\Atendimento\Enfermagem;
|
|
|
|
use Exception;
|
|
use Illuminate\Http\Response;
|
|
|
|
class ServicoEnfermagemCannotChangeStatusException extends Exception
|
|
{
|
|
public function render($request)
|
|
{
|
|
return response()->json([
|
|
'error' => 'Um ou mais serviços de enfermagem não permitem alterar o status!'
|
|
], Response::HTTP_BAD_REQUEST);
|
|
}
|
|
}
|