-
Notifications
You must be signed in to change notification settings - Fork 0
Exceptions
vhs94 edited this page Apr 1, 2024
·
1 revision
As Exceptions lançadas podem ser de dois tipos:
Ocorrem antes da request ser enviada ao PagSeguro. São Elas:
Exception | Causa |
---|---|
ClientNotConnectedException | Client não conectado. Tente chamar o .ConnectAsync() |
ClientNotConnectedWithChallengeException | Client não conectado por challenge. Tente chamar o .ConnectChallengeAsync() |
MissingClientApplicationException | faltando clientId e/ou clientSecret, informar ao criar o client ou chamar o método ConfigureClientApplication() |
Ocorrem depois que a request é feita ao PagSeguro. Estão mapeadas:
Exception | Causa |
---|---|
BadRequestException | Ver property .Response |
ConflictException | Conflito na chave de Idempotencia |
ForbiddenException | - |
InternalServerErrorException | - |
NotAcceptableException | Http Verb inválido para o recurso |
NotFoundException | - |
UnauthorizedException | - |
UnknownHttpException | Retornada quando HTTP Status diferente dos mapeados |