TargetSetupError
public
class
TargetSetupError
extends HarnessException
| java.lang.Object | ||
| ↳ | com.android.tradefed.error.HarnessException | |
| ↳ | 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 reason, DeviceDescriptor descriptor)
Constructs a new (@link TargetSetupError} with a meaningful error message. |
|
TargetSetupError(String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId)
Constructs a new (@link TargetSetupError} with a meaningful error message. |
|
TargetSetupError(String reason, ErrorIdentifier errorId)
Constructs a new (@link TargetSetupError} with a meaningful error message. |
|
TargetSetupError(String reason, Throwable cause)
This constructor is deprecated.
use |
|
TargetSetupError(String reason, Throwable cause, DeviceDescriptor descriptor)
Constructs a new (@link TargetSetupError} with a meaningful error message, and a cause. |
|
TargetSetupError(String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide)
Constructs a new (@link TargetSetupError} with a meaningful error message, and a cause. |
|
TargetSetupError(String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide, ErrorIdentifier errorId)
Constructs a new (@link TargetSetupError} with a meaningful error message, and a cause. |
|
TargetSetupError(String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId)
Constructs a new (@link TargetSetupError} with a meaningful error message, and a cause. |
|
TargetSetupError(String reason, Throwable cause, ErrorIdentifier errorId)
Constructs a new (@link TargetSetupError} with a meaningful error message, and a cause. |
|
Public methods | |
|---|---|
String
|
getDeviceSerial()
Return the serial of the device impacted by the TargetSetupError. |
Public constructors
TargetSetupError
public TargetSetupError (String reason)
This constructor is deprecated.
use TargetSetupError(String, com.android.tradefed.command.remote.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
public 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
public TargetSetupError (String reason,
DeviceDescriptor descriptor,
ErrorIdentifier errorId)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 |
errorId |
ErrorIdentifier: the error identifier for this error. |
TargetSetupError
public TargetSetupError (String reason,
ErrorIdentifier errorId)Constructs a new (@link TargetSetupError} with a meaningful error message.
| Parameters | |
|---|---|
reason |
String: a error message describing the cause of the error |
errorId |
ErrorIdentifier: the error identifier for this error. |
TargetSetupError
public TargetSetupError (String reason,
Throwable cause)
This constructor is deprecated.
use TargetSetupError(String, Throwable, com.android.tradefed.command.remote.DeviceDescriptor, com.android.tradefed.result.error.ErrorIdentifier) 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
public 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, can be null. |
TargetSetupError
public TargetSetupError (String reason,
Throwable cause,
DeviceDescriptor descriptor,
boolean deviceSide)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, can be null. |
deviceSide |
boolean: Whether or not the exception is generated due to a device side error. |
TargetSetupError
public TargetSetupError (String reason,
Throwable cause,
DeviceDescriptor descriptor,
boolean deviceSide,
ErrorIdentifier errorId)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, can be null. |
deviceSide |
boolean: Whether or not the exception is generated due to a device side error. |
errorId |
ErrorIdentifier: the error identifier for this error. |
TargetSetupError
public TargetSetupError (String reason,
Throwable cause,
DeviceDescriptor descriptor,
ErrorIdentifier errorId)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, can be null. |
errorId |
ErrorIdentifier: the error identifier for this error. |
TargetSetupError
public TargetSetupError (String reason,
Throwable cause,
ErrorIdentifier errorId)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 |
errorId |
ErrorIdentifier: the error identifier for this error. |
Public methods
getDeviceSerial
public String getDeviceSerial ()
Return the serial of the device impacted by the TargetSetupError. Can be null.
| Returns | |
|---|---|
String |
|