com.jrockit.mc.rjmx.proxy
Class MemleakStartupException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.jrockit.mc.rjmx.proxy.MemleakStartupException
All Implemented Interfaces:
java.io.Serializable

public final class MemleakStartupException
extends java.lang.Exception

Exception thrown when the startup of the memleak server fails.

Author:
mpersson
See Also:
Serialized Form

Field Summary
static int KIND_ANOTHER_CLIENT_CONNECTED
          Another client is already connected.
static int KIND_COULD_NOT_LISTEN_ON_PORT
          Server could not listen on the specified port.
static int KIND_SERVER_ALREADY_RUNNING
          The server was already running.
static int KIND_UNKNOWN
          Unknown problem.
static int KIND_WRONG_PROTOCOL_VERSION
          Unknown protocol version.
 
Constructor Summary
MemleakStartupException(java.lang.String message)
          Constructor.
MemleakStartupException(java.lang.String message, java.lang.Boolean recoverable)
          Constructor.
MemleakStartupException(java.lang.String message, java.lang.Throwable cause)
          Constructor.
MemleakStartupException(java.lang.String message, java.lang.Throwable cause, java.lang.Boolean recoverable)
          Constructor.
MemleakStartupException(java.lang.String message, java.lang.Throwable cause, int kind, java.lang.Boolean recoverable)
          Constructor.
MemleakStartupException(java.lang.Throwable cause)
          Constructor.
MemleakStartupException(java.lang.Throwable cause, java.lang.Boolean recoverable)
          Constructor.
MemleakStartupException(java.lang.Throwable cause, int kind, java.lang.Boolean recoverable)
          Constructor.
 
Method Summary
 int getKind()
          The kind of error, used for customizing error messages.
 java.lang.Boolean getRecoverability()
          Return the recoverability for the exception
 boolean isRecoverable()
          Return true if the exception can be recovered from.
 boolean mayBeRecoverable()
          Return true if the exception may be recovered from.
 
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_UNKNOWN

public static final int KIND_UNKNOWN
Unknown problem.

See Also:
Constant Field Values

KIND_WRONG_PROTOCOL_VERSION

public static final int KIND_WRONG_PROTOCOL_VERSION
Unknown protocol version.

See Also:
Constant Field Values

KIND_ANOTHER_CLIENT_CONNECTED

public static final int KIND_ANOTHER_CLIENT_CONNECTED
Another client is already connected.

See Also:
Constant Field Values

KIND_COULD_NOT_LISTEN_ON_PORT

public static final int KIND_COULD_NOT_LISTEN_ON_PORT
Server could not listen on the specified port.

See Also:
Constant Field Values

KIND_SERVER_ALREADY_RUNNING

public static final int KIND_SERVER_ALREADY_RUNNING
The server was already running.

See Also:
Constant Field Values
Constructor Detail

MemleakStartupException

public MemleakStartupException(java.lang.String message)
Constructor.

Parameters:
message - the exception message.

MemleakStartupException

public MemleakStartupException(java.lang.String message,
                               java.lang.Boolean recoverable)
Constructor.

Parameters:
message - the exception message.
recoverable - if this exception is recoverable.

MemleakStartupException

public MemleakStartupException(java.lang.Throwable cause)
Constructor.

Parameters:
cause - the cause.

MemleakStartupException

public MemleakStartupException(java.lang.Throwable cause,
                               java.lang.Boolean recoverable)
Constructor.

Parameters:
cause - the cause.
recoverable - if this exception is recoverable.

MemleakStartupException

public MemleakStartupException(java.lang.Throwable cause,
                               int kind,
                               java.lang.Boolean recoverable)
Constructor.

Parameters:
cause - the cause.
kind - the kind of problem.
recoverable - if this exception is recoverable.

MemleakStartupException

public MemleakStartupException(java.lang.String message,
                               java.lang.Throwable cause)
Constructor.

Parameters:
message - the exception message.
cause - the cause.

MemleakStartupException

public MemleakStartupException(java.lang.String message,
                               java.lang.Throwable cause,
                               java.lang.Boolean recoverable)
Constructor.

Parameters:
message - the exception message.
cause - the cause.
recoverable - if this exception is recoverable.

MemleakStartupException

public MemleakStartupException(java.lang.String message,
                               java.lang.Throwable cause,
                               int kind,
                               java.lang.Boolean recoverable)
Constructor.

Parameters:
message - the exception message.
cause - the cause.
kind - the kind of problem.
recoverable - if this exception is recoverable.
Method Detail

mayBeRecoverable

public boolean mayBeRecoverable()
Return true if the exception may be recovered from.

Returns:
true if the exception may be recovered from.

isRecoverable

public boolean isRecoverable()
Return true if the exception can be recovered from.

Returns:
true if the exception can be recovered from.

getRecoverability

public java.lang.Boolean getRecoverability()
Return the recoverability for the exception

Returns:
the recoverability for the exception.

getKind

public int getKind()
The kind of error, used for customizing error messages. To determine if the exception can be recovered from, use the recoverability methods instead.

Returns:
one of the KIND_* constants of this class.


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