Class ObjectInUseException

    • Constructor Detail

      • ObjectInUseException

        public ObjectInUseException​(String msg,
                                    String name,
                                    Object user)
        Constructs an ObjectInUseException object
        Parameters:
        msg - exception message
        name - name of the object that is in use
        user - object that is using the object you are trying to remove
      • ObjectInUseException

        public ObjectInUseException​(String rbName,
                                    String errCode,
                                    Object[] args,
                                    String name,
                                    Object user)
        Constructs an ObjectInUseException object
        Parameters:
        rbName - Resource bundle name of exception message
        errCode - id used with resource bundle to get error message
        args - any arguments for message formatting. null if no additional arguments are necessary
        name - name of the object that is in use
        user - object that is using the object you are trying to remove
      • ObjectInUseException

        public ObjectInUseException​(String rbName,
                                    String errCode,
                                    Object[] args,
                                    Throwable t,
                                    String name,
                                    Object user)
        Constructs an ObjectInUseException object
        Parameters:
        rbName - Resource bundle name of exception message
        errCode - id used with resource bundle to get error message
        args - any arguments for message formatting. null if no additional arguments are necessary
        t - nested root cause exception
        name - name of the object that is in use
        user - object that is using the object you are trying to remove
      • ObjectInUseException

        public ObjectInUseException​(Throwable t,
                                    String name,
                                    Object user)
        Constructs an ObjectInUseException object
        Parameters:
        t - nested root cause exception
        name - name of the object that is in use
        user - object that is using the object you are trying to remove
    • Method Detail

      • getName

        public String getName()
        Gets the name that is in use.
        Returns:
        name of the object that is in use
      • getMessage

        public String getMessage()
        Gets messages of the exceptions including the chained exceptions
        Specified by:
        getMessage in interface L10NMessage
        Overrides:
        getMessage in class Throwable
        Returns:
        messages of the exceptions including chained exceptions. The returned string is formed by concatenating messages of all the exceptions, with a new line separator, starting from this exception, all the way to the root exception, by following the chained exceptions.
      • printStackTrace

        public void printStackTrace()
        Prints the stack trace of the root exception to standard error stream. Also prints the messages of all the exceptions starting from top exception to the root exception, at the top of stack trace
        Overrides:
        printStackTrace in class Throwable
      • printStackTrace

        public void printStackTrace​(PrintWriter pw)
        Prints the stack trace of the root exception to a PrintWriter Also prints the messages of all the exceptions starting from top exception to the root exception, at the top of stack trace
        Overrides:
        printStackTrace in class Throwable
        Parameters:
        pw - PrintWriter to which to print the stack trace
      • printStackTrace

        public void printStackTrace​(PrintStream ps)
        Prints the stack trace of the root exception to a PrintStream Also prints the messages of all the exceptions starting from top exception to the root exception, at the top of stack trace
        Overrides:
        printStackTrace in class Throwable
        Parameters:
        ps - PrintStream to which to print the stack trace
      • getNestedException

        public Throwable getNestedException()