This commit is contained in:
19
api/app/Exceptions/Integracao/Ria/SenhaInvalidaException.php
Normal file
19
api/app/Exceptions/Integracao/Ria/SenhaInvalidaException.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\Integracao\Ria;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class SenhaInvalidaException extends Exception
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->message = 'A senha do certificado é inválida.';
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return response()->json(['message' => $this->message], Response::HTTP_BAD_REQUEST);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user