ExhaustedAttemptsException.java

net.minecraft.gametest.framework.ExhaustedAttemptsException

信息

  • 全限定名:net.minecraft.gametest.framework.ExhaustedAttemptsException
  • 类型:package-private class
  • 包:net.minecraft.gametest.framework
  • 源码路径:src/main/java/net/minecraft/gametest/framework/ExhaustedAttemptsException.java
  • 起始行号:L3
  • 继承:Throwable
  • 职责:

    TODO

字段/常量

内部类/嵌套类型

构造器

public ExhaustedAttemptsException(int attempts, int successes, GameTestInfo testInfo) @ L4

  • 构造器名:ExhaustedAttemptsException
  • 源码定位:L4
  • 修饰符:public

参数:

  • attempts: int
  • successes: int
  • testInfo: GameTestInfo

说明:

TODO

方法

下面的方法块按源码顺序生成。

代码

class ExhaustedAttemptsException extends Throwable {
    public ExhaustedAttemptsException(int attempts, int successes, GameTestInfo testInfo) {
        super(
            "Not enough successes: "
                + successes
                + " out of "
                + attempts
                + " attempts. Required successes: "
                + testInfo.requiredSuccesses()
                + ". max attempts: "
                + testInfo.maxAttempts()
                + ".",
            testInfo.getError()
        );
    }
}

引用的其他类