Class 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 Detail

      • FrameworkException

        public FrameworkException​(Status status)
      • FrameworkException

        public FrameworkException​(Status status,
                                  Throwable cause)
    • Method Detail

      • getStatus

        public Status getStatus()