18 lines
407 B
PHP
18 lines
407 B
PHP
<?php
|
|
|
|
namespace App\Exceptions\AtencaoBasica;
|
|
|
|
use Exception;
|
|
use Illuminate\Http\Response;
|
|
|
|
class ExameSolicitadoAvaliadoException extends Exception
|
|
{
|
|
|
|
public function render()
|
|
{
|
|
return response()->json([
|
|
'message' => 'O Exame <strong>' . json_decode($this->getMessage()) .'</strong> é incompatível com o sexo do(a) paciente.'
|
|
], Response::HTTP_BAD_REQUEST);
|
|
}
|
|
}
|