init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Exceptions\ExameImagem;
use Exception;
use Illuminate\Http\Response;
class ExceededCotaAgendamentoException extends Exception
{
public function render()
{
return response()->json(
json_decode(json_encode(['requires_supervisor' => true]), true),
Response::HTTP_OK
);
}
}

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Exceptions\ExameImagem;
use Exception;
use Illuminate\Http\Response;
class ExceededJornadaException extends Exception
{
public function render()
{
return response()->json(
json_decode(json_encode(['requires_supervisor_jornada' => true]), true),
Response::HTTP_OK
);
}
}

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Exceptions\ExameImagem;
use Exception;
use Illuminate\Http\Response;
class ExceededVagaJornadaException extends Exception
{
public function render()
{
return response()->json([
'message' => 'Número de vagas atingido.'
], Response::HTTP_BAD_REQUEST);
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Exceptions\ExameImagem;
use Exception;
use Illuminate\Http\Response;
class ProtocoloFechamentoException extends Exception
{
public function __construct()
{
$this->message = 'Existe(m) protocolo(s) de fechamento não informado(s) e/ou inválido(s).';
}
public function render()
{
return response()->json(['message' => $this->message], Response::HTTP_BAD_REQUEST);
}
}