Package com.networknt.exception
Class FrameworkException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.networknt.exception.FrameworkException
-
- All Implemented Interfaces:
Serializable
public class FrameworkException extends RuntimeException
This is similar exception like ApiException but it is RuntimeException. It should be used not against consumer request but only internally in the framework. For example, check if the passed in parameter is null etc. The FrameworkException will be handled by ExceptionHandler before the exchange ends and a meaningful status will be returned to the consumer.- Author:
- Steve Hu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FrameworkException(Status status)FrameworkException(Status status, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusgetStatus()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-