Class FieldException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FieldValidationException, NoSuchFieldException

public class FieldException extends ApiException
An unchecked exception for when there is a problem with a field.
See Also:
  • Constructor Details

    • FieldException

      public FieldException(String fieldName, FieldException.Type type)
      Create a new FieldException with the provided field name and field exception type
      Parameters:
      fieldName - the provided field name
      type - the provided field exception type
  • Method Details

    • getType

      public FieldException.Type getType()
      Get the type.
      Returns:
      the type
    • getFieldName

      public String getFieldName()
      Get the field name.
      Returns:
      the field name
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable