Example usage for android.os DeadObjectException DeadObjectException

List of usage examples for android.os DeadObjectException DeadObjectException

Introduction

In this page you can find the example usage for android.os DeadObjectException DeadObjectException.

Prototype

public DeadObjectException() 

Source Link

Usage

From source file:edu.umich.oasis.service.Handle.java

public void marshalOut() {
    synchronized (mSyncRoot) {
        checkComplete();/*from   w w w.jav  a 2 s.  co  m*/
        if (isMarshalled()) {
            return;
        }
        try {
            ISandboxObject obj = mLiveValues.get(mDefiningSandbox);
            if (obj == null) {
                // shouldn't have happened - means the sandbox has been destroyed
                Log.e(TAG, "Can't find live value to marshal out");
                mThrowable = new DeadObjectException();
            } else {
                ParceledPayloadExceptionResult result = obj.marshalOut();
                if (result.isException()) {
                    mThrowable = result.getException();
                } else {
                    mMarshaled = result.getResult();
                }
            }
        } catch (Exception e) {
            mThrowable = e;
        }
        if (!mDefiningSandbox.getTaints().isSubsetOf(TaintSet.nullToEmpty(mTaint))) {
            Log.e(TAG, "Sandbox taints have increased prior to marshal out");
            mTaint = mDefiningSandbox.getTaints();
        }
        unregisterMarshal();
        mHandler = null;
    }
}