Abgleich der Exceptions in den SDKs für Java und .NET
Die von den API-Klassen des Java- und .NET-SDKs verwendeten Exceptions sollen möglichst einheitlich sein und mit der jeweiligen API-Dokumentation übereinstimmen. Dieses Ticket dient dem Sammeln der zu verwendenden Exception-Namen und die Zuordnung zu den jeweils verwendenden Methoden.
SendableSubmission.Builder
Java-Methode | Java-Exception(s) | Abgleich | .NET-Exception(s) | .NET-Methode |
---|---|---|---|---|
setDestination |
--- | SetDestination |
||
addAttachments |
--- | AddAttachments |
||
addAttachment |
--- | AddAttachment |
||
setReplyChannel |
--- | SetReplyChannel |
||
setJsonData |
FitConnectSenderException | SetJsonData |
||
setXmlData |
FitConnectSenderException | SetXmlData |
||
setServiceType |
FitConnectSenderException | SetServiceType |
||
setAuthenticationInformation |
--- | SetAuthenticationInformation |
||
setPaymentInformation |
--- | SetPaymentInformation |
||
build |
--- | Build |
SenderClient
.NET
In jedem .NET REST API Call können HttpRequestException
, AuthenticationException
und InvalidCredentialsException
auftreten.
Theoretisch kann auch auch Fehler beim Deserialisieren des AuthenticationTokens auftreten.
Java-Methode | Java-Exception(s) | Abgleich | .NET-Exception(s) | .NET-Methode |
---|---|---|---|---|
getPublicKeyForDestination |
KeyNotRetrievedException , InvalidKeyException , InitializationException , RestApiException
|
SecurityException |
GetPublicKeyForDestinationAsync |
|
getEventLog |
EventLogException , ValidationException , EventCreationException , SchemaNotFoundException , RestApiException , InitializationException , InvalidKeyException
|
|||
getStatusForSubmission |
EventLogException , ValidationException , EventCreationException , SchemaNotFoundException , RestApiException , InitializationException , InvalidKeyException
|
AuthenticationTagException , InvalidOperationException
|
GetStatusForSubmissionAsync |
|
validateCallback |
EncryptionException |
ArgumentException |
ValidateCallback |
|
send (unencrypted) |
RestApiException , InitializationException , KeyNotRetrievedException , AttachmentCreationException , SubmissionNotCreatedException , EncryptionException , SchemaNotFoundException , ParseException , InvalidKeyException
|
SecurityException , ArgumentException , PlatformNotSupportedException
|
SendAsync |
|
send (encrypted) |
RestApiException , InitializationException , SubmissionNotCreatedException , ParseException
|
SubscriberClient
Java-Methode | Java-Exception(s) | Abgleich | .NET-Exception(s) | .NET-Methode |
---|---|---|---|---|
getAvailableSubmissionsForDestination |
RestApiException , InitializationException
|
HttpRequestException , AuthenticationException , InvalidCredentialsException
|
GetAvailableSubmissionsAsync |
|
getAvailableSubmissionsForDestination (paged) |
RestApiException , InitializationException
|
HttpRequestException , AuthenticationException , InvalidCredentialsException
|
GetAvailableSubmissionsAsync |
|
getEventLog |
EventLogException , ValidationException , EventCreationException , SchemaNotFoundException , RestApiException , InitializationException , InvalidKeyException
|
|||
requestSubmission (by submission) |
SubmissionRequestException , AttachmentCreationException , EventLogException , ValidationException , EventCreationException , SchemaNotFoundException , InitializationException , RestApiException , InvalidKeyException
|
SecurityEventException , ArgumentException , HttpRequestException , AuthenticationException , InvalidCredentialsException
|
RequestSubmissionAsync |
|
requestSubmission (by submission ID) |
SubmissionRequestException , AttachmentCreationException , EventLogException , ValidationException , EventCreationException , SchemaNotFoundException , InitializationException , RestApiException , InvalidKeyException
|
SecurityEventException , ArgumentException , HttpRequestException , AuthenticationException , InvalidCredentialsException
|
RequestSubmissionAsync |
|
rejectSubmission |
EventLogException , EventCreationException , SchemaNotFoundException , RestApiException , InitializationException
|
HttpRequestException , AuthenticationException , InvalidCredentialsException
|
RejectSubmission |
|
validateCallback |
EncryptionException |
ArgumentException |
ValidateCallback |
RoutingClient
Java-Methode | Java-Exception(s) | Abgleich | .NET-Exception(s) | .NET-Methode |
---|---|---|---|---|
findDestinations |
RoutingException , RestApiException , SchemaNotFoundException , InitializationException
|
HttpRequestException , ArgumentException
|
FindDestinationsAsync |
|
findAreas (single filter) |
RestApiException , InitializationException
|
HttpRequestException |
FindAreas |
|
findAreas (multiple filter) |
RestApiException , InitializationException
|
HttpRequestException |
FindAreas |
Edited by Klaus Fischer