Class FieldDoesNotExistException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.restdocs.payload.FieldDoesNotExistException
All Implemented Interfaces:
Serializable

public class FieldDoesNotExistException extends RuntimeException
A FieldDoesNotExistException is thrown when a requested field does not exist in a payload.
Author:
Andy Wilkinson
See Also:
  • Constructor Details

    • FieldDoesNotExistException

      public FieldDoesNotExistException(String fieldPath)
      Creates a new FieldDoesNotExistException that indicates that the field with the given fieldPath does not exist.
      Parameters:
      fieldPath - the path of the field that does not exist