Class ModelCreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.restdocs.snippet.ModelCreationException
- All Implemented Interfaces:
Serializable
An exception that can be thrown by a
TemplatedSnippet to indicate that a
failure has occurred during model creation.- Author:
- Andy Wilkinson
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModelCreationException(String message, Throwable cause) Creates a newModelCreationExceptionwith the givenmessageandcause.ModelCreationException(Throwable cause) Creates a newModelCreationExceptionwith the givencause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ModelCreationException
Creates a newModelCreationExceptionwith the givencause.- Parameters:
cause- the cause
-
ModelCreationException
Creates a newModelCreationExceptionwith the givenmessageandcause.- Parameters:
message- the messagecause- the cause
-