ReportedException.java
net.minecraft.ReportedException
信息
- 全限定名:net.minecraft.ReportedException
- 类型:public class
- 包:net.minecraft
- 源码路径:src/main/java/net/minecraft/ReportedException.java
- 起始行号:L3
- 继承:RuntimeException
- 职责:
TODO
字段/常量
report- 类型:
CrashReport - 修饰符:
private final - 源码定位:
L4 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
public ReportedException(CrashReport report) @ L6
- 构造器名:ReportedException
- 源码定位:L6
- 修饰符:public
参数:
- report: CrashReport
说明:
TODO
方法
下面的方法块按源码顺序生成。
public CrashReport getReport() @ L10
- 方法名:getReport
- 源码定位:L10
- 返回类型:CrashReport
- 修饰符:public
参数:
- 无
说明:
TODO
public Throwable getCause() @ L14
- 方法名:getCause
- 源码定位:L14
- 返回类型:Throwable
- 修饰符:public
参数:
- 无
说明:
TODO
public String getMessage() @ L19
- 方法名:getMessage
- 源码定位:L19
- 返回类型:String
- 修饰符:public
参数:
- 无
说明:
TODO
代码
public class ReportedException extends RuntimeException {
private final CrashReport report;
public ReportedException(CrashReport report) {
this.report = report;
}
public CrashReport getReport() {
return this.report;
}
@Override
public Throwable getCause() {
return this.report.getException();
}
@Override
public String getMessage() {
return this.report.getTitle();
}
}引用的其他类
- CrashReport
- 引用位置:
参数/字段/返回值
- 引用位置: