Class CakeException

    • Constructor Detail

      • CakeException

        public CakeException​(String message,
                             Throwable cause,
                             Object caller,
                             Object... parameters)
        Parameters:
        message - message the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method)
        caller - the caller of the exception (which is saved for later retrieval by the getCaller() method)
        parameters - an array of parameters (which is saved for later retrieval by the getParameters() method)
      • CakeException

        public CakeException​(String message,
                             Object caller,
                             Object... parameters)
        Parameters:
        message - message the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
        caller - the caller of the exception (which is saved for later retrieval by the getCaller() method)
        parameters - an array of parameters (which is saved for later retrieval by the getParameters() method)
      • CakeException

        public CakeException​(String component,
                             String key,
                             Object caller)
        Parameters:
        component - the log compoment
        key - the log key
        caller - the caller of the exception
        See Also:
        Logger
      • CakeException

        public CakeException​(String component,
                             String key,
                             Object caller,
                             Object[] parameters)
        Parameters:
        component - the log compoment
        key - the log key
        caller - the caller of the exception
        parameters - an array of parameters
        See Also:
        Logger
      • CakeException

        public CakeException​(String component,
                             String key,
                             Object caller,
                             Object parameter1)
        Parameters:
        component - the log compoment
        key - the log key
        caller - the caller of the exception
        parameter1 - the first parameter
        See Also:
        Logger
      • CakeException

        public CakeException​(String component,
                             String key,
                             Object caller,
                             Object parameter1,
                             Object parameter2)
        Parameters:
        component - the log compoment
        key - the log key
        caller - the caller of the exception
        parameter1 - the first parameter
        parameter2 - the first parameter
        See Also:
        Logger
      • CakeException

        public CakeException​(String component,
                             String key,
                             Object caller,
                             Object parameter1,
                             Object parameter2,
                             Object parameter3)
        Parameters:
        component - the log compoment
        key - the log key
        caller - the caller of the exception
        parameter1 - the first parameter
        parameter2 - the first parameter
        parameter3 - the first parameter
        See Also:
        Logger
      • CakeException

        public CakeException​(String component,
                             String key,
                             Object caller,
                             Object parameter1,
                             Object parameter2,
                             Object parameter3,
                             Object parameter4)
        Parameters:
        component - the log compoment
        key - the log key
        caller - the caller of the exception
        parameter1 - the first parameter
        parameter2 - the first parameter
        parameter3 - the first parameter
        parameter4 - the first parameter
        See Also:
        Logger
    • Method Detail

      • getCaller

        public Object getCaller()
        Returns:
        Returns the caller.
      • getParameters

        public Object[] getParameters()
        Returns:
        Returns the parameters.
      • getParameter

        public Object getParameter​(int index)
        Returns:
        Return a specific parameter.
      • getComponent

        public String getComponent()
        Returns:
        Returns the component.
      • getKey

        public String getKey()
        Returns:
        Returns the key.