Example usage for android.os RemoteException initCause

List of usage examples for android.os RemoteException initCause

Introduction

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

Prototype

public synchronized Throwable initCause(Throwable cause) 

Source Link

Document

Initializes the cause of this throwable to the specified value.

Usage

From source file:org.droid2droid.internal.AbstractRemoteAndroidImpl.java

@Override
public void dumpAsync(FileDescriptor arg0, String[] arg1) throws RemoteException {
    RemoteException re = new RemoteException();
    re.initCause(new MethodNotSupportedException("dumpAsync"));
    throw re;//from  w  w w. jav  a2s  .c o m
}