Class FieldDoesNotExistException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.restdocs.payload.FieldDoesNotExistException
- All Implemented Interfaces:
Serializable
A
FieldDoesNotExistException
is thrown when a requested field does not exist in
a payload.- Author:
- Andy Wilkinson
- See Also:
-
Constructor Summary
ConstructorDescriptionFieldDoesNotExistException
(String fieldPath) Creates a newFieldDoesNotExistException
that indicates that the field with the givenfieldPath
does not exist. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FieldDoesNotExistException
Creates a newFieldDoesNotExistException
that indicates that the field with the givenfieldPath
does not exist.- Parameters:
fieldPath
- the path of the field that does not exist
-