Class ElfinderConnectorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.xima.fc.gui.elfinder.ElfinderConnectorException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ElfinderConnectorException.Client, ElfinderConnectorException.Server

public abstract class ElfinderConnectorException extends Exception
Exception raised when a request to the elfinder connector could not be handled.
Since:
8.3.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • 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 Details

    • 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.