MediaDrm.MediaDrmStateException
public
static
final
class
MediaDrm.MediaDrmStateException
extends IllegalStateException
implements
MediaDrmThrowable
java.lang.Object | |||||
↳ | java.lang.Throwable | ||||
↳ | java.lang.Exception | ||||
↳ | java.lang.RuntimeException | ||||
↳ | java.lang.IllegalStateException | ||||
↳ | android.media.MediaDrm.MediaDrmStateException |
Thrown when a general failure occurs during a MediaDrm operation.
Extends IllegalStateException
with the addition of an error
code that may be useful in diagnosing the failure.
Please refer to ErrorCodes
for the general error handling
strategy and details about each possible return value from getErrorCode()
.
Summary
Public methods | |
---|---|
String
|
getDiagnosticInfo()
Retrieve a developer-readable diagnostic information string associated with the exception. |
int
|
getErrorCode()
Returns error code associated with this |
int
|
getErrorContext()
Returns |
int
|
getOemError()
Returns OEM or SOC specific error code associated with this |
int
|
getVendorError()
Returns |
boolean
|
isTransient()
Returns true if the |
Inherited methods | |
---|---|
Public methods
getDiagnosticInfo
public String getDiagnosticInfo ()
Retrieve a developer-readable diagnostic information string associated with the exception. Do not show this to end-users, since this string will not be localized or generally comprehensible to end-users.
Returns | |
---|---|
String |
This value cannot be null . |
getErrorCode
public int getErrorCode ()
Returns error code associated with this MediaDrmStateException
.
Please refer to ErrorCodes
for the general error handling
strategy and details about each possible return value.
getErrorContext
public int getErrorContext ()
Returns MediaDrm
plugin vendor defined error context associated with this MediaDrmThrowable
.
Please consult the MediaDrm
plugin vendor for details on the error context.
Returns | |
---|---|
int |
an opaque integer that would help the @MediaDrm vendor locate the
source of the error if available, otherwise 0. |
getOemError
public int getOemError ()
Returns OEM or SOC specific error code associated with this MediaDrmThrowable
.
Please consult the MediaDrm
plugin, chip, or device vendor for details on the
error code.
Returns | |
---|---|
int |
an OEM or SOC specific error code if available, otherwise 0. |
getVendorError
public int getVendorError ()
Returns MediaDrm
plugin vendor defined error code associated with this MediaDrmThrowable
.
Please consult the MediaDrm
plugin vendor for details on the error code.
Returns | |
---|---|
int |
an error code defined by the MediaDrm plugin vendor if available,
otherwise 0. |
isTransient
public boolean isTransient ()
Returns true if the MediaDrmStateException
is a transient
issue, perhaps due to resource constraints, and that the operation
(e.g. provisioning) may succeed on a subsequent attempt.
Returns | |
---|---|
boolean |