Error codes
onErrorOccurred receives an error code, a constant of MobbSignResultCodes, and a map with the details of the error:
mobbSignView.setOnErrorOccurredListener((errorCode, errorDetails) -> {
switch (errorCode) {
case MobbSignResultCodes.ERROR_LICENSE_INVALID:
// …
break;
default:
// …
}
});
| Code | Cause | What to do |
|---|---|---|
ERROR_ACQUIRING_SIGNATURE (1) | The signature is shorter than the minimum length and has been discarded. | Ask the signer to sign again. |
ERROR_LICENSE_INVALID | The license is not valid or has expired. | Check the license key and the application ID. Contact Mobbeel to renew it. |
ERROR_MANDATORY_PARAMS | A mandatory parameter is missing, such as the encryption key. | Check the configuration. |
ERROR_VISUALIZING_DOCUMENT | The document cannot be displayed. | Check that the file is a valid PDF. |
ERROR_DOCUMENT_IS_NOT_COMPLETELY_FILLED | The document has required form fields that are empty. | Ask the user to fill in the form. |
ERROR_SAVING_FORM_FIELDS | The form fields could not be saved. | Retry the operation. |
ERROR_CANNOT_SIGN_EDITABLE_DOCUMENT | The document has unsaved changes in its form fields. | Call saveForms() before signing. |
ERROR_STAMPING_SIGNATURE | The signature could not be added to the document. | Retry the signature. |
ERROR_STAMPING_SIGNATURE_DATA | The signature data could not be added to the document. | Retry the signature. |
ERROR_TIMESTAMP | The timestamp could not be obtained from the time-stamping server. | Check the URL and the credentials of the timestamp server. |
ERROR_CUSTOMIZATION_PROPERTY | A property of the customisation bundle is not valid. | Check the key and the type of the value. |
ERROR_SIGNATURE_NOT_VERIFIED | Signer verification: the signature does not match the signer. | The document is not signed. |
ERROR_VERIFYING_SIGNATURE | The signer verification could not be completed. | Retry the signature. |
ERROR_VERIFICATION_MODULE_NOT_PRESENT | The SDK does not include the signer verification module. | Contact Mobbeel. |