Class ConversionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.restdocs.operation.ConversionException
All Implemented Interfaces:
Serializable

public class ConversionException extends RuntimeException
An exception that can be thrown by RequestConverter and ResponseConverter implementations to indicate that a failure has occurred during conversion.
Since:
1.1.0
Author:
Andy Wilkinson
See Also:
  • Constructor Details

    • ConversionException

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

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