org.netbeans.lib.cvsclient.command
Class CommandException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.netbeans.lib.cvsclient.command.CommandException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommandAbortedException, ResponseException

public class CommandException
extends Exception

This exception is thrown when an error occurs while executing a command. It is nearly always a container for another exception.

Author:
Robert Greig
See Also:
Serialized Form

Constructor Summary
CommandException(Exception underlyingException, String localizedMessage)
           
CommandException(String message, String localizedMessage)
           
 
Method Summary
protected static String getBundleString(String key)
           
 String getLocalizedMessage()
           
static String getLocalMessage(String key)
           
static String getLocalMessage(String key, Object[] arguments)
           
 String getMessage()
           
 Exception getUnderlyingException()
           
 void printStackTrace()
           
 void printStackTrace(PrintStream stream)
           
 void printStackTrace(PrintWriter writer)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandException

public CommandException(Exception underlyingException,
                        String localizedMessage)

CommandException

public CommandException(String message,
                        String localizedMessage)
Method Detail

getUnderlyingException

public Exception getUnderlyingException()

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream stream)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter writer)
Overrides:
printStackTrace in class Throwable

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getBundleString

protected static String getBundleString(String key)

getLocalMessage

public static String getLocalMessage(String key)

getLocalMessage

public static String getLocalMessage(String key,
                                     Object[] arguments)


Copyright © 2011. All Rights Reserved.