Class ConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.restdocs.operation.ConversionException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConversionException(String message, Throwable cause) Creates a newConversionExceptionwith the givenmessageandcause.ConversionException(Throwable cause) Creates a newConversionExceptionwith 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
-
ConversionException
Creates a newConversionExceptionwith the givencause.- Parameters:
cause- the cause
-
ConversionException
Creates a newConversionExceptionwith the givenmessageandcause.- Parameters:
message- the messagecause- the cause
-