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