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
ConstructorDescriptionModelCreationException
(String message, Throwable cause) Creates a newModelCreationException
with the givenmessage
andcause
.ModelCreationException
(Throwable cause) Creates a newModelCreationException
with 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 newModelCreationException
with the givencause
.- Parameters:
cause
- the cause
-
ModelCreationException
Creates a newModelCreationException
with the givenmessage
andcause
.- Parameters:
message
- the messagecause
- the cause
-