Class NuxeoException

    • Field Detail

      • statusCode

        protected int statusCode
    • Constructor Detail

      • NuxeoException

        public NuxeoException()
      • NuxeoException

        public NuxeoException​(int statusCode)
        Since:
        9.3
      • NuxeoException

        public NuxeoException​(String message)
      • NuxeoException

        public NuxeoException​(String message,
                              int statusCode)
        Since:
        9.3
      • NuxeoException

        public NuxeoException​(String message,
                              Throwable cause)
      • NuxeoException

        public NuxeoException​(String message,
                              Throwable cause,
                              int statusCode)
        Since:
        9.3
      • NuxeoException

        public NuxeoException​(Throwable cause)
      • NuxeoException

        public NuxeoException​(Throwable cause,
                              int statusCode)
        Since:
        9.3
    • Method Detail

      • addInfo

        public NuxeoException addInfo​(String info)
        Adds information to this exception, to be returned with the message.
        Parameters:
        info - the information
        Since:
        7.4
      • getInfos

        public List<String> getInfos()
        Gets the information added to this exception.

        The list is returned in the reverse order than that of the calls to addInfo(java.lang.String), i.e., the last added information is first in the list.

        Returns:
        the information list
        Since:
        7.4
      • getOriginalMessage

        public String getOriginalMessage()
        Gets the original message passed to the constructor, without additional information added.
        Since:
        7.4
      • getStatusCode

        public int getStatusCode()
        Gets the HTTP status code mapped to this exception.
        Since:
        9.3