This commit is contained in:
16
api/app/Exceptions/RestPki/CertificadoInvalidException.php
Normal file
16
api/app/Exceptions/RestPki/CertificadoInvalidException.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\RestPki;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class CertificadoInvalidException extends Exception
|
||||
{
|
||||
public function render()
|
||||
{
|
||||
return response()->json([
|
||||
'message' => 'O certificado digital informado é inválido ou expirado.'
|
||||
], Response::HTTP_BAD_REQUEST);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user