HarnessRuntimeException

public class HarnessRuntimeException
extends RuntimeException implements IHarnessException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.android.tradefed.error.HarnessRuntimeException


खास जानकारी

सार्वजनिक कंस्ट्रक्टर

HarnessRuntimeException(String message, IHarnessException cause)

अपवाद के लिए कंस्ट्रक्टर.

HarnessRuntimeException(String message, ErrorIdentifier errorId)

अपवाद के लिए कंस्ट्रक्टर.

HarnessRuntimeException(String message, ErrorIdentifier defaultError, IHarnessException cause)

अपवाद के लिए कंस्ट्रक्टर.

HarnessRuntimeException(String message, Throwable cause, ErrorIdentifier errorId)

अपवाद के लिए कंस्ट्रक्टर.

पब्लिक मेथड

ErrorIdentifier getErrorId()

अपवाद से जुड़ा ErrorIdentifier दिखाता है.

String getOrigin()

यह अपवाद की वजह दिखाता है.

String toString()

प्रोटेक्टेड मेथड

final void setCallerClass(Class<?> clazz)

सार्वजनिक कंस्ट्रक्टर

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                IHarnessException cause)

अपवाद के लिए कंस्ट्रक्टर.

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

cause IHarnessException: वह IHarnessException जिसकी वजह से अपवाद हुआ.

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                ErrorIdentifier errorId)

अपवाद के लिए कंस्ट्रक्टर.

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

errorId ErrorIdentifier: अपवाद को कैटगरी में बांटने वाला ErrorIdentifier.

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                ErrorIdentifier defaultError, 
                IHarnessException cause)

अपवाद के लिए कंस्ट्रक्टर.

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

defaultError ErrorIdentifier: अगर अपवाद में ErrorIdentifier सेट नहीं है, तो लागू करने के लिए ErrorIdentifier.

cause IHarnessException: वह IHarnessException जिसकी वजह से अपवाद हुआ.

HarnessRuntimeException

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

toString

public String toString ()

रिटर्न
String

प्रोटेक्टेड मेथड

setCallerClass

protected final void setCallerClass (Class<?> clazz)

पैरामीटर
clazz Class