हार्नेस अपवाद

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