Class ElfinderConnectorException

    • Constructor Detail

      • ElfinderConnectorException

        protected ElfinderConnectorException​(String message)
      • ElfinderConnectorException

        protected ElfinderConnectorException​(String message,
                                             Throwable cause)
      • ElfinderConnectorException

        protected ElfinderConnectorException​(String message,
                                             String[] data)
      • ElfinderConnectorException

        protected ElfinderConnectorException​(String message,
                                             Throwable cause,
                                             String[] data)
    • Method Detail

      • getErrorValue

        public final Object getErrorValue()
        The error value to return in the response.
        Returns:
        The error value.
      • ofCode

        public static ElfinderConnectorException ofCode​(EElfinderErrorCode errorCode,
                                                        String... arguments)
        Creates a new expected client error with the given error code.
        Parameters:
        errorCode - The error code.
        arguments - Additional arguments for the error message.
        Returns:
        The new exception.
      • ofCode

        public static ElfinderConnectorException ofCode​(EElfinderErrorCode errorCode,
                                                        Throwable cause,
                                                        String... arguments)
        Creates a new expected client error with the given error code.
        Parameters:
        errorCode - The error code.
        cause - The underlying cause of the error.
        arguments - Additional arguments for the error message.
        Returns:
        The new exception.
      • ofCode

        public static ElfinderConnectorException ofCode​(EElfinderErrorCode errorCode,
                                                        String message,
                                                        Throwable cause,
                                                        String... arguments)
        Creates a new expected client error with the given error code.
        Parameters:
        errorCode - The error code.
        message - Internal error message.
        cause - The underlying cause of the error.
        arguments - Additional arguments for the error message.
        Returns:
        The new exception.
      • ofCode

        public static ElfinderConnectorException ofCode​(String message,
                                                        EElfinderErrorCode errorCode,
                                                        String... arguments)
        Creates a new expected client error with the given error code.
        Parameters:
        message - Initial error message.
        errorCode - The error code.
        arguments - Additional arguments for the error message.
        Returns:
        The new exception.