クラス PreconditionFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.thinkit.common.base.precondition.exception.PreconditionFailedException
-
- すべての実装されたインタフェース:
Serializable
public final class PreconditionFailedException extends RuntimeException
Thrown to indicate that a specified value or object does not meet the preconditions as a result of the validation process.- 導入されたバージョン:
- 1.0
- 関連項目:
- 直列化された形式
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 PreconditionFailedException()Constructs anPreconditionFailedExceptionwith no detail message.PreconditionFailedException(String s)Constructs anPreconditionFailedExceptionwith the specified detail message.PreconditionFailedException(String message, Throwable cause)Constructs a new exception with the specified detail message and cause.PreconditionFailedException(Throwable cause)Constructs a new exception with the specified cause and a detail message of(cause==null ?
-
メソッドの概要
-
クラスから継承されたメソッド java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
コンストラクタの詳細
-
PreconditionFailedException
public PreconditionFailedException()
Constructs anPreconditionFailedExceptionwith no detail message.
-
PreconditionFailedException
public PreconditionFailedException(String s)
Constructs anPreconditionFailedExceptionwith the specified detail message.- パラメータ:
s- the detail message.
-
PreconditionFailedException
public PreconditionFailedException(String message, Throwable cause)
Constructs a new exception with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this exception's detail message.- パラメータ:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)- 導入されたバージョン:
- 1.0
-
PreconditionFailedException
public PreconditionFailedException(Throwable cause)
Constructs a new exception with the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause). This constructor is useful for exceptions that are little more than wrappers for other throwables (for example,PrivilegedActionException).- パラメータ:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)- 導入されたバージョン:
- 1.0
-
-