I see from the Reference Implementation and the Java API that it's possible to set Error Data on the license request using either the values defined in the com.adobe.flashaccess.sdk.protocol.AdobeErrorData class, or custom values using CustomErrorData.
I want to create a test license server that can send specific error codes to the player, so that I can better test my player's responses to FAXS error codes.
To properly do this, I need to understand how the errors described in the Java API map to the different ActionScript runtime error codes. Is there a document somewhere that relates the two? I would rather not issue each ErrorData object individually from my license server to see what Flash Player & the FAXS runtime do with it.
Thanks,
-Mike
| Error code | AdobeErrorData field | Client Error Mapping |
| 105 | REQ_UNSUPPORTED_VERSION | 3350 |
| 110 | REQ_AUTH_TOKEN_INVALID_EXPIRED | 3301 |
| 111 | REQ_MACHINE_TOKEN_INVALID_EXPIRED | 3324 |
| 112 | REQ_DRM_CREDENTIAL_NEEDS_UPGRADE | 3335 |
| 113 | REQ_RUNTIME_CREDENTIAL_NEEDS_UPGRADE | 3337 |
| 114 | REQ_DRM_VERSION_NOT_SUPPORTED | 3334 |
| 115 | REQ_RUNTIME_VERSION_NOT_SUPPORTED | 3336 |
| 116 | REQ_UNSUPPORTED_VERSION_NEED_UPGRADE | 3335 |
| 202 | AUTH_FAILED | 3301 |
| 302 | LACQ_CONTENT_METADATA_INVALID | 3314 |
| 303 | LACQ_CONTENT_POLICY_EXPIRED | 3303 |
| 304 | LACQ_CONTENT_POLICY_REVOKED | 3303 |
| 305 | LACQ_USER_NOT_AUTHORIZED | 3304 |
| 306 | LACQ_AUTHENTICATION_REQUIRED | 3330 |
| 307 | LACQ_TAMPERING_DETECTED | 3326 |
| 311 | LACQ_DOMAIN_REGISTRATION_REQUIRED | 3360 |
| 312 | LACQ_CONTENT_POLICY_NOT_YET_VALID | 3331 |
| 313 | LACQ_DEVICE_CAPABILITIES_INSUFFICIENT | 3347 |
| 501 | DOM_REG_DENIED | 3355 |
| 502 | DOM_LIMIT_REACHED | 3355 |
| 503 | DOM_AUTHENTICATION_REQUIRED | 3330 |
Note:
- Any error codes defined in AdobeErrorData which are not listed in the mapping above will result in 3328 on the client. The client suberror code will carry the error code sent by the server.
- If the server defines custom error codes using CustomErrorData, this will result in 3329 on the client. The client suberror code will carry the error code sent by the server.
Reference error code links:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/run timeErrors.html
North America
Europe, Middle East and Africa
Asia Pacific