Package com.mojang.realmsclient.exception
Part 1/1
RealmsDefaultUncaughtExceptionHandler
- Full name:
com.mojang.realmsclient.exception.RealmsDefaultUncaughtExceptionHandler - Package:
com.mojang.realmsclient.exception - Source:
clientOnly—com/mojang/realmsclient/exception/RealmsDefaultUncaughtExceptionHandler.java - Type:
class - Modifiers:
public - Implements:
UncaughtExceptionHandler
com.mojang.realmsclient.exception.RealmsDefaultUncaughtExceptionHandler#RealmsDefaultUncaughtExceptionHandler(Logger)
- Origin:
clientOnly - Source:
com/mojang/realmsclient/exception/RealmsDefaultUncaughtExceptionHandler.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RealmsDefaultUncaughtExceptionHandler ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: logger.
Parameters
Logger logger
ตัวอย่างใช้งาน
Logger logger = ...;
RealmsDefaultUncaughtExceptionHandler instance = new RealmsDefaultUncaughtExceptionHandler(logger);
com.mojang.realmsclient.exception.RealmsDefaultUncaughtExceptionHandler#uncaughtException(Thread,Throwable)
- Origin:
clientOnly - Source:
com/mojang/realmsclient/exception/RealmsDefaultUncaughtExceptionHandler.java:16 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ uncaughtException ตาม implementation ของ RealmsDefaultUncaughtExceptionHandler
ทำงานยังไง
เรียกต่อ: error().
Parameters
Thread threadThrowable throwable
ตัวอย่างใช้งาน
RealmsDefaultUncaughtExceptionHandler instance = ...;
Thread thread = ...;
Throwable throwable = ...;
instance.uncaughtException(thread, throwable);
RealmsHttpException
- Full name:
com.mojang.realmsclient.exception.RealmsHttpException - Package:
com.mojang.realmsclient.exception - Source:
clientOnly—com/mojang/realmsclient/exception/RealmsHttpException.java - Type:
class - Modifiers:
public - Extends:
RuntimeException
com.mojang.realmsclient.exception.RealmsHttpException#RealmsHttpException(String,Exception)
- Origin:
clientOnly - Source:
com/mojang/realmsclient/exception/RealmsHttpException.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RealmsHttpException ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String stringException exception
ตัวอย่างใช้งาน
Exception exception = ...;
RealmsHttpException instance = new RealmsHttpException("value", exception);
RealmsServiceException
- Full name:
com.mojang.realmsclient.exception.RealmsServiceException - Package:
com.mojang.realmsclient.exception - Source:
clientOnly—com/mojang/realmsclient/exception/RealmsServiceException.java - Type:
class - Modifiers:
public - Extends:
Exception
com.mojang.realmsclient.exception.RealmsServiceException#getMessage()
- Origin:
clientOnly - Source:
com/mojang/realmsclient/exception/RealmsServiceException.java:15 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Message
ทำงานยังไง
เรียกต่อ: logMessage(). คืนค่า: this.realmsError.logMessage().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.realmsclient.exception.RealmsServiceException#RealmsServiceException(RealmsError)
- Origin:
clientOnly - Source:
com/mojang/realmsclient/exception/RealmsServiceException.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RealmsServiceException ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: realmsError.
Parameters
RealmsError realmsError
ตัวอย่างใช้งาน
RealmsError realmsError = ...;
RealmsServiceException instance = new RealmsServiceException(realmsError);
RetryCallException
- Full name:
com.mojang.realmsclient.exception.RetryCallException - Package:
com.mojang.realmsclient.exception - Source:
clientOnly—com/mojang/realmsclient/exception/RetryCallException.java - Type:
class - Modifiers:
public - Extends:
RealmsServiceException
com.mojang.realmsclient.exception.RetryCallException#RetryCallException(int,int)
- Origin:
clientOnly - Source:
com/mojang/realmsclient/exception/RetryCallException.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RetryCallException ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: delaySeconds. เรียกต่อ: retry().
Parameters
int iint j