Class ServiceException

    • Field Detail

      • statusCode

        protected final int statusCode
      • reason

        protected final String reason
      • domain

        protected final String domain
      • logLevel

        protected Level logLevel
    • Constructor Detail

      • ServiceException

        public ServiceException​(int statusCode,
                                String statusMessage)
      • ServiceException

        public ServiceException​(int statusCode,
                                Throwable cause)
      • ServiceException

        public ServiceException​(int statusCode,
                                String statusMessage,
                                Throwable cause)
      • ServiceException

        public ServiceException​(int statusCode,
                                String statusMessage,
                                String reason)
      • ServiceException

        public ServiceException​(int statusCode,
                                String statusMessage,
                                String reason,
                                Throwable cause)
      • ServiceException

        public ServiceException​(int statusCode,
                                String statusMessage,
                                String reason,
                                String domain)
      • ServiceException

        public ServiceException​(int statusCode,
                                String statusMessage,
                                String reason,
                                String domain,
                                Throwable cause)
    • Method Detail

      • getStatusCode

        public int getStatusCode()
      • getReason

        public String getReason()
      • getDomain

        public String getDomain()
      • getLogLevel

        public Level getLogLevel()
      • withLogLevel

        public static <T extends ServiceException> T withLogLevel​(T exception,
                                                                  Level level)