クラス ErrorContext<T extends Annotation>

java.lang.Object
org.thinkit.framework.envali.context.ErrorContext<T>
すべての実装されたインタフェース:
Serializable

public final class ErrorContext<T extends Annotation>
extends Object
implements Serializable
The context that manages error details such as ErrorType and error message.
導入されたバージョン:
1.0.1
関連項目:
直列化された形式
  • メソッドの詳細

    • of

      public static <T extends Annotation> ErrorContext<T> of​(@NonNull @NonNull ParameterConfig parameterConfig, @NonNull T annotation, @NonNull @NonNull ValidationPattern validationPattern)
      Returns the new instance of ErrorContext based on the data passed as argument.
      型パラメータ:
      T - The annotation type with Annotation class as a parent
      パラメータ:
      parameterConfig - The parameter configuration based on ParameterConfig
      annotation - The Envali supported annotation
      validationPattern - The validation pattern based on ValidationPattern
      戻り値:
      The new instance of ErrorContext based on the data passed as argument
      例外:
      NullPointerException - If null is passed as an argument
    • of

      public static <T extends Annotation> ErrorContext<T> of​(@NonNull T annotation, @NonNull @NonNull ValidationPattern validationPattern)
      Returns the new instance of ErrorContext based on the data passed as argument.
      型パラメータ:
      T - The annotation type with Annotation class as a parent
      パラメータ:
      annotation - The envali annotation
      validationPattern - The validation pattern based on ValidationPattern
      戻り値:
      The new instance of ErrorContext based on the data passed as argument
      例外:
      NullPointerException - If null is passed as an argument
    • of

      public static <T extends Annotation> ErrorContext<T> of​(@NonNull @NonNull ValidationPattern validationPattern)
      Returns the new instance of ErrorContext based on the data passed as argument.
      型パラメータ:
      T - The annotation type with Annotation class as a parent
      パラメータ:
      validationPattern - The validation pattern based on ValidationPattern
      戻り値:
      The new instance of ErrorContext based on the data passed as argument
      例外:
      NullPointerException - If null is passed as an argument
    • toString

      public String toString()
      オーバーライド:
      toString クラス内 Object
    • equals

      public boolean equals​(Object o)
      オーバーライド:
      equals クラス内 Object
    • hashCode

      public int hashCode()
      オーバーライド:
      hashCode クラス内 Object
    • getParameterConfig

      public ParameterConfig getParameterConfig()
      The parameter configuration
    • getAnnotation

      public T getAnnotation()
      The envali anotation
    • getValidationPattern

      public ValidationPattern getValidationPattern()
      The validation pattern