Class NonJsonResourceNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.flowable.ui.common.service.exception.BaseModelerRestException
-
- org.flowable.ui.common.service.exception.NonJsonResourceNotFoundException
-
- All Implemented Interfaces:
Serializable
public class NonJsonResourceNotFoundException extends BaseModelerRestException
This is needed for when the REST resource is stated to return for example image/png, but needs to throw a 404 In this case, the default ExceptionHandlerAdvice will create a message for the 404. But that will lead to a Spring exception and the end result is that it will be transmitted as a 500.- Author:
- jbarrez
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.flowable.ui.common.service.exception.BaseModelerRestException
customData, messageKey
-
-
Constructor Summary
Constructors Constructor Description NonJsonResourceNotFoundException()
-
Method Summary
-
Methods inherited from class org.flowable.ui.common.service.exception.BaseModelerRestException
addCustomData, getCustomData, getMessageKey, setCustomData, setMessageKey
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-