FileDocCategorySizeDatePackage
NativeDaemonConnectorException.javaAPI DocAndroid 5.1 API1752Thu Mar 12 22:22:42 GMT 2015com.android.server

NativeDaemonConnectorException

public class NativeDaemonConnectorException extends Exception
An exception that indicates there was an error with a {@link NativeDaemonConnector} operation.

Fields Summary
private String
mCmd
private NativeDaemonEvent
mEvent
Constructors Summary
public NativeDaemonConnectorException(String detailMessage)

        super(detailMessage);
    
public NativeDaemonConnectorException(String detailMessage, Throwable throwable)

        super(detailMessage, throwable);
    
public NativeDaemonConnectorException(String cmd, NativeDaemonEvent event)

        super("command '" + cmd + "' failed with '" + event + "'");
        mCmd = cmd;
        mEvent = event;
    
Methods Summary
public java.lang.StringgetCmd()

        return mCmd;
    
public intgetCode()

        return mEvent.getCode();
    
public java.lang.IllegalArgumentExceptionrethrowAsParcelableException()
Rethrow as a {@link RuntimeException} subclass that is handled by {@link Parcel#writeException(Exception)}.

        throw new IllegalStateException(getMessage(), this);