Class ModelCreationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.restdocs.snippet.ModelCreationException
All Implemented Interfaces:
Serializable

public class ModelCreationException extends RuntimeException
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 Details

    • ModelCreationException

      public ModelCreationException(Throwable cause)
      Creates a new ModelCreationException with the given cause.
      Parameters:
      cause - the cause
    • ModelCreationException

      public ModelCreationException(String message, Throwable cause)
      Creates a new ModelCreationException with the given message and cause.
      Parameters:
      message - the message
      cause - the cause