Class InvalidFieldException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidFieldException
    extends java.lang.RuntimeException
    Indicates a field of a configuration was invalid.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidFieldException​(java.lang.String field, java.lang.String reason)
      Creates a new invalid field exception about a given field.
      InvalidFieldException​(java.lang.String field, java.lang.Throwable cause)
      Creates a new invalid field exception about a given field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String field()
      Returns the field name.
      java.lang.String reason()
      Returns the reason the field failed to validate.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidFieldException

        public InvalidFieldException​(java.lang.String field,
                                     java.lang.String reason)
        Creates a new invalid field exception about a given field.
        Parameters:
        field - field name
        reason - reason the field is invalid
      • InvalidFieldException

        public InvalidFieldException​(java.lang.String field,
                                     java.lang.Throwable cause)
        Creates a new invalid field exception about a given field.
        Parameters:
        field - field name
        cause - throwable that occurred while trying to validate field
    • Method Detail

      • field

        public java.lang.String field()
        Returns the field name.
        Returns:
        field name
      • reason

        public java.lang.String reason()
        Returns the reason the field failed to validate.
        Returns:
        reason