SDK エラー管理
最終更新
役に立ちましたか?
When D1 SDK API is not able to succeed, it returns an error in its callback. In the API documentation, each API lists its possible errors.
D1Exception.getMessage() (Android) and D1Error.errorDescription (iOS) provide a String representation of the error information. It is recommended for the issuer application to include the error stack trace in their support tickets as in the following code snippets:
D1Exception d1Exception; // thrown by SDK API
String message = d1Exception.getMessage();if let d1Error = error { // thrown by SDK API
var message = d1Error.errorDescription
}If you have a size constraint on the error information and needs a truncation, use the following APIs to obtain a brief version of the error:
D1Exception.getErrorCode() returns D1Exception.ErrorCode that describes the error type.
D1Error.code returns D1Error.Code that describes the error type.
最終更新
役に立ちましたか?
役に立ちましたか?