パッケージ org.wcardinal.exception
クラス NotReadyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.wcardinal.exception.NotReadyException
- すべての実装されたインタフェース:
Serializable
Thrown to indicate methods which are not ready have been invoked.
Invoking methods of AbstractController or
fields including SClass from constructors or
@PostConstruct methods is, typically, the
root cause of this exception. If this is the case, please consider using
@OnCreate.
import org.wcardinal.controller.annotation.Callable;
import org.wcardinal.controller.annotation.Controller;
@Controller
class MyController {
public SClass<String> field;
MyController(SClass<String> field) {
this.field = field;
field.set("Cardinal"); // This throws NotReadyException since SClass<String> is not ready to be used.
}
@OnCreate
void init() {
field.set("Cardinal"); // Instead please initialize here.
}
}-
コンストラクタの概要
コンストラクタ -
メソッドの概要
クラスから継承されたメソッド java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
コンストラクタの詳細
-
NotReadyException
public NotReadyException() -
NotReadyException
-