हार्नेसएक्सेप्शन

public class HarnessException
extends Object implements IHarnessException

java.lang.ऑब्जेक्ट
com.android.tradefed.error.HarnessException


हार्नेस के भीतर फेंके गए अपवाद के लिए आधार अपवाद वर्ग। यह वर्ग विफलता विवरण की रिपोर्ट करने के लिए ErrorIdentifier ले जाने में मदद करता है।

सारांश

सार्वजनिक निर्माणकर्ता

HarnessException ( ErrorIdentifier errorId)
HarnessException (String message, ErrorIdentifier errorId)
HarnessException (Throwable cause, ErrorIdentifier errorId)
HarnessException (String message, Throwable cause, ErrorIdentifier errorId)

सार्वजनिक तरीके

ErrorIdentifier getErrorId ()

अपवाद से संबद्ध ErrorIdentifier लौटाता है।

String getOrigin ()

अपवाद का मूल लौटाता है.

String toString ()

संरक्षित तरीके

final void setCallerClass (Class<?> clazz)
final void setCallerClass (String clazz)

सार्वजनिक निर्माणकर्ता

हार्नेसएक्सेप्शन

public HarnessException (ErrorIdentifier errorId)

पैरामीटर
errorId ErrorIdentifier

हार्नेसएक्सेप्शन

public HarnessException (String message, 
                ErrorIdentifier errorId)

पैरामीटर
message String

errorId ErrorIdentifier

हार्नेसएक्सेप्शन

public HarnessException (Throwable cause, 
                ErrorIdentifier errorId)

पैरामीटर
cause Throwable

errorId ErrorIdentifier

हार्नेसएक्सेप्शन

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

पैरामीटर
message String

cause Throwable

errorId ErrorIdentifier

सार्वजनिक तरीके

getErrorId

public ErrorIdentifier getErrorId ()

अपवाद से संबद्ध ErrorIdentifier लौटाता है। शून्य हो सकता है.

रिटर्न
ErrorIdentifier

उत्पत्ति प्राप्त करें

public String getOrigin ()

अपवाद का मूल लौटाता है.

रिटर्न
String

स्ट्रिंग

public String toString ()

रिटर्न
String

संरक्षित तरीके

सेटकॉलरक्लास

protected final void setCallerClass (Class<?> clazz)

पैरामीटर
clazz Class

सेटकॉलरक्लास

protected final void setCallerClass (String clazz)

पैरामीटर
clazz String