Sonic Management API

com.sonicsw.mq.common.runtime
Class CannotActivateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sonicsw.mf.common.MFException
              extended by com.sonicsw.mq.common.runtime.CannotActivateException
All Implemented Interfaces:
java.io.Serializable

public class CannotActivateException
extends MFException

A CannotActivateException is thrown from the activateWaitingBroker() runtime operation if the attempt to activate the broker fails, because the broker is not in the correct state, or for other reasons. This exception contains an error code that can be utilized to further determine the cause of the exception. An explanation of the errors are provided for each code (see ERR_<> below).

See Also:
IBrokerProxy.activateWaitingBroker(), ProxyRuntimeException.getTargetException(), MBeanException.getTargetException(), Serialized Form

Field Summary
static int ERR_NOTRECOVERABLE
          The broker cannot be activated because it is not recoverabble, i.e.
static int ERR_NOTWAITING
          The broker cannot be activated because it is not in the WAITING state
static int ERR_UNSPECIFIED
          The attempt to activate the broker failed for an unspecified reason.
 
Constructor Summary
CannotActivateException(int errorcode)
          Create a durable operation exception
 
Method Summary
 int getErrorCode()
          Get the error code
 
Methods inherited from class com.sonicsw.mf.common.MFException
getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERR_NOTRECOVERABLE

public static final int ERR_NOTRECOVERABLE
The broker cannot be activated because it is not recoverabble, i.e. becaues it is restarting after a crash or loss of replication connection during STANDBY_SYNC. The broker must be reinitialized.

See Also:
Constant Field Values

ERR_NOTWAITING

public static final int ERR_NOTWAITING
The broker cannot be activated because it is not in the WAITING state

See Also:
Constant Field Values

ERR_UNSPECIFIED

public static final int ERR_UNSPECIFIED
The attempt to activate the broker failed for an unspecified reason.

See Also:
Constant Field Values
Constructor Detail

CannotActivateException

public CannotActivateException(int errorcode)
Create a durable operation exception

Parameters:
errorcode - The error code that indicates the type of error.
Method Detail

getErrorCode

public int getErrorCode()
Get the error code

Returns:
The error code

Sonic Management API

Copyright © 2001-2010 Progress Software Corporation. All Rights Reserved.
HTML formatted on 07-Mar-2010.