हार्नेस रनटाइम अपवाद

public class HarnessRuntimeException
extends Object implements IHarnessException

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


सारांश

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

HarnessRuntimeException (String message, ErrorIdentifier errorId)

अपवाद के लिए निर्माता।

HarnessRuntimeException (String message, IHarnessException cause)

अपवाद के लिए निर्माता।

HarnessRuntimeException (String message, Throwable cause, ErrorIdentifier errorId)

अपवाद के लिए निर्माता।

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

ErrorIdentifier getErrorId ()

अपवाद से जुड़े ErrorIdentifier लौटाता है।

String getOrigin ()

अपवाद की उत्पत्ति लौटाता है।

String toString ()

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

final void setCallerClass (Class<?> clazz)

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

हार्नेस रनटाइम अपवाद

public HarnessRuntimeException (String message, 
                ErrorIdentifier errorId)

अपवाद के लिए निर्माता।

पैरामीटर
message String : अपवाद से जुड़ा संदेश

errorId ErrorIdentifier : ErrorIdentifier अपवाद को वर्गीकृत करता है।

हार्नेस रनटाइम अपवाद

public HarnessRuntimeException (String message, 
                IHarnessException cause)

अपवाद के लिए निर्माता।

पैरामीटर
message String : अपवाद से जुड़ा संदेश

cause IHarnessException : IHarnessException जो अपवाद का कारण बनी।

हार्नेस रनटाइम अपवाद

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

अपवाद के लिए निर्माता।

पैरामीटर
message String : अपवाद से जुड़ा संदेश

cause Throwable : अपवाद का कारण

errorId ErrorIdentifier : ErrorIdentifier अपवाद को वर्गीकृत करता है।

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

getErrorId

public ErrorIdentifier getErrorId ()

अपवाद से जुड़े ErrorIdentifier लौटाता है। शून्य हो सकता है।

रिटर्न
ErrorIdentifier

getOrigin

public String getOrigin ()

अपवाद की उत्पत्ति लौटाता है।

रिटर्न
String

स्ट्रिंग

public String toString ()

रिटर्न
String

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

setCallerClass

protected final void setCallerClass (Class<?> clazz)

पैरामीटर
clazz Class