TargetSetupError

public class TargetSetupError
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.android.tradefed.targetprep.TargetSetupError


A fatal error occurred while preparing the target for testing.

Summary

Public constructors

TargetSetupError(String reason)

This constructor is deprecated. use TargetSetupError(String, DeviceDescriptor) instead.

TargetSetupError(String reason, DeviceDescriptor descriptor)

Constructs a new (@link TargetSetupError} with a meaningful error message.

TargetSetupError(String reason, Throwable cause)

This constructor is deprecated. use TargetSetupError(String, Throwable, DeviceDescriptor) instead.

TargetSetupError(String reason, Throwable cause, DeviceDescriptor descriptor)

Constructs a new (@link TargetSetupError} with a meaningful error message, and a cause.

Public methods

DeviceDescriptor getDeviceDescriptor()

Return the descriptor of the device associated with exception.

Public constructors

TargetSetupError

TargetSetupError (String reason)

This constructor is deprecated.
use TargetSetupError(String, DeviceDescriptor) instead.

Constructs a new (@link TargetSetupError} with a meaningful error message.

Parameters
reason String: a error message describing the cause of the error

TargetSetupError

TargetSetupError (String reason, 
                DeviceDescriptor descriptor)

Constructs a new (@link TargetSetupError} with a meaningful error message.

Parameters
reason String: a error message describing the cause of the error
descriptor DeviceDescriptor: the descriptor of the device concerned

TargetSetupError

TargetSetupError (String reason, 
                Throwable cause)

This constructor is deprecated.
use TargetSetupError(String, Throwable, DeviceDescriptor) instead.

Constructs a new (@link TargetSetupError} with a meaningful error message, and a cause.

Parameters
reason String: a detailed error message.
cause Throwable: a Throwable capturing the original cause of the TargetSetupError

TargetSetupError

TargetSetupError (String reason, 
                Throwable cause, 
                DeviceDescriptor descriptor)

Constructs a new (@link TargetSetupError} with a meaningful error message, and a cause.

Parameters
reason String: a detailed error message.
cause Throwable: a Throwable capturing the original cause of the TargetSetupError
descriptor DeviceDescriptor: the descriptor of the device concerned

Public methods

getDeviceDescriptor

DeviceDescriptor getDeviceDescriptor ()

Return the descriptor of the device associated with exception.

Returns
DeviceDescriptor