Class RestApiException

    • Constructor Detail

      • RestApiException

        public RestApiException​(String id,
                                OffsetDateTime timestamp,
                                String message,
                                String errorCode,
                                Boolean errorCodeInherited,
                                String className,
                                String application,
                                String path,
                                Handler handler,
                                List<StackTraceItem> stackTrace,
                                RestApiException cause)
        Instantiates a new rest api exception.
        Parameters:
        id - the id
        timestamp - the timestamp
        message - the message
        errorCode - the error code
        errorCodeInherited - the error code inherited
        className - the class name
        application - the application
        path - the path
        handler - the handler
        stackTrace - the stack trace
        cause - the cause
    • Method Detail

      • getId

        public String getId()
        The id of the exception.
        Returns:
        id id
      • setId

        public void setId​(String id)
        Sets id.
        Parameters:
        id - the id
      • getTimestamp

        public OffsetDateTime getTimestamp()
        The timestamp.
        Returns:
        timestamp timestamp
      • setTimestamp

        public void setTimestamp​(OffsetDateTime timestamp)
        Sets timestamp.
        Parameters:
        timestamp - the timestamp
      • getMessage

        public String getMessage()
        A human readable exception message.
        Returns:
        message message
      • setMessage

        public void setMessage​(String message)
        Sets message.
        Parameters:
        message - the message
      • getErrorCode

        public String getErrorCode()
        A service specific error code.
        Returns:
        errorCode error code
      • setErrorCode

        public void setErrorCode​(String errorCode)
        Sets error code.
        Parameters:
        errorCode - the error code
      • getErrorCodeInherited

        public Boolean getErrorCodeInherited()
        Is the error code inherited from the cause.
        Returns:
        errorCodeInherited error code inherited
      • setErrorCodeInherited

        public void setErrorCodeInherited​(Boolean errorCodeInherited)
        Sets error code inherited.
        Parameters:
        errorCodeInherited - the error code inherited
      • getClassName

        public String getClassName()
        The class name of the exception.
        Returns:
        className class name
      • setClassName

        public void setClassName​(String className)
        Sets class name.
        Parameters:
        className - the class name
      • getApplication

        public String getApplication()
        The name of the application.
        Returns:
        application application
      • setApplication

        public void setApplication​(String application)
        Sets application.
        Parameters:
        application - the application
      • getPath

        public String getPath()
        The request path.
        Returns:
        path path
      • setPath

        public void setPath​(String path)
        Sets path.
        Parameters:
        path - the path
      • getHandler

        public Handler getHandler()
        Get handler.
        Returns:
        handler handler
      • setHandler

        public void setHandler​(Handler handler)
        Sets handler.
        Parameters:
        handler - the handler
      • getStackTrace

        public List<StackTraceItem> getStackTrace()
        The stack trace.
        Returns:
        stackTrace stack trace
      • setStackTrace

        public void setStackTrace​(List<StackTraceItem> stackTrace)
        Sets stack trace.
        Parameters:
        stackTrace - the stack trace
      • setCause

        public void setCause​(RestApiException cause)
        Sets cause.
        Parameters:
        cause - the cause