Khai thác ngoại lệ
public class HarnessException
extends Object
implements IHarnessException
java.lang.Object |
↳ | com.android.tradefed.error.HarnessException |
Các lớp con trực tiếp đã biết |
Các lớp con gián tiếp đã biết |
Lớp ngoại lệ cơ sở dành cho ngoại lệ được đưa vào trong dây nịt. Lớp này giúp mang ErrorIdentifier
để báo cáo chi tiết lỗi.
Bản tóm tắt
Nhà thầu xây dựng công cộng
Khai thác ngoại lệ
public HarnessException (ErrorIdentifier errorId)
Thông số |
---|
errorId | ErrorIdentifier |
Khai thác ngoại lệ
public HarnessException (String message,
ErrorIdentifier errorId)
Thông số |
---|
message | String |
errorId | ErrorIdentifier |
Khai thác ngoại lệ
public HarnessException (Throwable cause,
ErrorIdentifier errorId)
Thông số |
---|
cause | Throwable |
errorId | ErrorIdentifier |
Khai thác ngoại lệ
public HarnessException (String message,
Throwable cause,
ErrorIdentifier errorId)
Thông số |
---|
message | String |
cause | Throwable |
errorId | ErrorIdentifier |
Phương pháp công cộng
lấy nguồn gốc
public String getOrigin ()
Trả về nguồn gốc của ngoại lệ.
toString
public String toString ()
Phương pháp được bảo vệ
setCallerClass
protected final void setCallerClass (Class<?> clazz)
setCallerClass
protected final void setCallerClass (String clazz)