HarnessRuntimeException

public class HarnessRuntimeException
extends Object implements IHarnessException

java.lang.Object
   ↳ com.android.tradefed.error.HarnessRuntimeException


Summary

Public constructors

HarnessRuntimeException(String message, ErrorIdentifier errorId)

Constructor for the exception.

HarnessRuntimeException(String message, IHarnessException cause)

Constructor for the exception.

HarnessRuntimeException(String message, Throwable cause, ErrorIdentifier errorId)

Constructor for the exception.

Public methods

ErrorIdentifier getErrorId()

Returns the ErrorIdentifier associated with the exception.

String getOrigin()

Returns the origin of the exception.

String toString()

Protected methods

final void setCallerClass(Class<?> clazz)

Public constructors

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                ErrorIdentifier errorId)

Constructor for the exception.

Parameters
message String: The message associated with the exception

errorId ErrorIdentifier: The ErrorIdentifier categorizing the exception.

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                IHarnessException cause)

Constructor for the exception.

Parameters
message String: The message associated with the exception

cause IHarnessException: The IHarnessException that caused the exception.

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                Throwable cause, 
                ErrorIdentifier errorId)

Constructor for the exception.

Parameters
message String: The message associated with the exception

cause Throwable: The cause of the exception

errorId ErrorIdentifier: The ErrorIdentifier categorizing the exception.

Public methods

getErrorId

public ErrorIdentifier getErrorId ()

Returns the ErrorIdentifier associated with the exception. Can be null.

Returns
ErrorIdentifier

getOrigin

public String getOrigin ()

Returns the origin of the exception.

Returns
String

toString

public String toString ()

Returns
String

Protected methods

setCallerClass

protected final void setCallerClass (Class<?> clazz)

Parameters
clazz Class