|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simalliance.openmobileapi.service.SmartcardError
public class SmartcardError
Smartcard service parameter class used to marshal exception information from the smartcard service to clients.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface android.os.Parcelable |
---|
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T> |
Field Summary | |
---|---|
static android.os.Parcelable.Creator<SmartcardError> |
CREATOR
|
Fields inherited from interface android.os.Parcelable |
---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Constructor Summary | |
---|---|
SmartcardError()
Creates an empty smartcard error container. |
|
SmartcardError(java.lang.String clazz,
java.lang.String message)
Creates a smartcard error which creates the specified exception. |
Method Summary | |
---|---|
void |
clear()
Clears the error. |
java.lang.Exception |
createException()
Creates the encoded exception. |
int |
describeContents()
|
void |
readFromParcel(android.os.Parcel in)
|
void |
setError(java.lang.Class clazz,
java.lang.String message)
Sets the error information. |
void |
throwException()
Throws the encoded exception. |
void |
writeToParcel(android.os.Parcel out,
int flags)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final android.os.Parcelable.Creator<SmartcardError> CREATOR
Constructor Detail |
---|
public SmartcardError()
public SmartcardError(java.lang.String clazz, java.lang.String message)
clazz
- the exception class. null
to reset the error
information.message
- the exception message.Method Detail |
---|
public void clear()
public java.lang.Exception createException()
null
if empty. If the
encoded exception is neither a RuntimeException nor a CardException, it
is encapsulated in a RuntimeException.
null
if empty.public int describeContents()
describeContents
in interface android.os.Parcelable
public void readFromParcel(android.os.Parcel in)
public void setError(java.lang.Class clazz, java.lang.String message)
clazz
- the exception class. null
to reset the error
information.message
- the exception message.public void throwException() throws CardException
java.lang.RuntimeException
- if the encoded exception is not a CardException.
CardException
- if a CardException is encoded.public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |