com.jrockit.memleak.comm
Class MemLeakControllerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.jrockit.memleak.comm.MemLeakControllerException
All Implemented Interfaces:
java.io.Serializable

public class MemLeakControllerException
extends java.io.IOException

Exception thrown by Controller implementors to indicate that an operation could not be completed. In addition to an error message and the exception causing the failure, the class provides a code which gives a semantic hint about why the exception was thrown.

Author:
Markus Persson
See Also:
getKind(), Controller, Serialized Form

Field Summary
static int KIND_CONNECTION
          Constant for connection errors.
static int KIND_GENERAL
          Constant for general errors.
static int KIND_LICENSE
          Constant for license errors.
static int KIND_UNSUPPORTED_JVM
          Constant for unsupported JVM errors.
 
Constructor Summary
MemLeakControllerException(MemLeakControllerException old, java.lang.String msg)
          Constructor typically used to change the message, without affecting the cause.
MemLeakControllerException(java.lang.String msg)
           
MemLeakControllerException(java.lang.String msg, int kind)
           
MemLeakControllerException(java.lang.Throwable cause)
           
MemLeakControllerException(java.lang.Throwable cause, int kind)
           
MemLeakControllerException(java.lang.Throwable cause, int kind, java.lang.String msg)
           
 
Method Summary
 int getKind()
          Gives a hint about what kind of event caused this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KIND_GENERAL

public static final int KIND_GENERAL
Constant for general errors.

See Also:
Constant Field Values

KIND_UNSUPPORTED_JVM

public static final int KIND_UNSUPPORTED_JVM
Constant for unsupported JVM errors.

See Also:
Constant Field Values

KIND_LICENSE

public static final int KIND_LICENSE
Constant for license errors.

See Also:
Constant Field Values

KIND_CONNECTION

public static final int KIND_CONNECTION
Constant for connection errors.

See Also:
Constant Field Values
Constructor Detail

MemLeakControllerException

public MemLeakControllerException(MemLeakControllerException old,
                                  java.lang.String msg)
Constructor typically used to change the message, without affecting the cause.

Parameters:
old -
msg -

MemLeakControllerException

public MemLeakControllerException(java.lang.Throwable cause,
                                  int kind,
                                  java.lang.String msg)
Parameters:
cause -
kind -
msg -

MemLeakControllerException

public MemLeakControllerException(java.lang.Throwable cause,
                                  int kind)
Parameters:
cause -
kind -

MemLeakControllerException

public MemLeakControllerException(java.lang.Throwable cause)
Parameters:
cause -

MemLeakControllerException

public MemLeakControllerException(java.lang.String msg,
                                  int kind)
Parameters:
msg -
kind -

MemLeakControllerException

public MemLeakControllerException(java.lang.String msg)
Parameters:
msg -
Method Detail

getKind

public int getKind()
Gives a hint about what kind of event caused this exception. Since different connection methods use different exception classes, checking them directly is not a viable option.

Returns:
the kind of cause.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.