public static RemoteCommandManagerException errorJMSMessageIsNull() { Object[] args = { }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_RECEIVED_JMS_MESSAGE_IS_NULL, args)); ex.setErrorCode(ERROR_RECEIVED_JMS_MESSAGE_IS_NULL); return ex; }
public static RemoteCommandManagerException remoteCommandManagerIsClosed() { Object[] args = { }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class,RCM_UNINITIALIZED_OR_CLOSED,args)); ex.setErrorCode(RCM_UNINITIALIZED_OR_CLOSED); return ex; } }
public static RemoteCommandManagerException errorGettingServerPlatform() { Object[] args = { }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_GETTING_SERVERPLATFORM, args)); ex.setErrorCode(ERROR_GETTING_SERVERPLATFORM); return ex; }
public static RemoteCommandManagerException remoteCommandManagerIsClosed() { Object[] args = { }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class,RCM_UNINITIALIZED_OR_CLOSED,args)); ex.setErrorCode(RCM_UNINITIALIZED_OR_CLOSED); return ex; } }
public static RemoteCommandManagerException errorGettingHostName(Exception internalEx) { RemoteCommandManagerException ex; Object[] args = { }; ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_GETTING_HOST_NAME, args)); ex.setErrorCode(ERROR_GETTING_HOST_NAME); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorCreatingJMSConnection(String topicName, String topicFactory, Throwable internalEx) { Object[] args = { topicName, topicFactory }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_CREATING_JMS_CONNECTION, args)); ex.setErrorCode(ERROR_CREATING_JMS_CONNECTION); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorDiscoveringLocalHostIPAddress(Exception internalEx) { Object[] args = { }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_DISCOVERING_IP_ADDRESS, args)); ex.setErrorCode(ERROR_DISCOVERING_IP_ADDRESS); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorCreatingOc4jJGroupsConnection(String serviceId, String topicName, String topicFactory, Throwable internalEx) { Object[] args = { serviceId, topicName, topicFactory }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_CREATING_OC4J_JGROUPS_CONNECTION, args)); ex.setErrorCode(ERROR_CREATING_OC4J_JGROUPS_CONNECTION); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorUnbindingLocalConnection(String unbindName, Exception internalEx) { RemoteCommandManagerException ex; Object[] args = { unbindName }; ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_UNBINDING_LOCAL_CONNECTION, args)); ex.setErrorCode(ERROR_UNBINDING_LOCAL_CONNECTION); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorCreatingOc4jJGroupsConnection(String serviceId, String topicName, String topicFactory, Throwable internalEx) { Object[] args = { serviceId, topicName, topicFactory }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_CREATING_OC4J_JGROUPS_CONNECTION, args)); ex.setErrorCode(ERROR_CREATING_OC4J_JGROUPS_CONNECTION); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorGettingHostName(Exception internalEx) { RemoteCommandManagerException ex; Object[] args = { }; ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_GETTING_HOST_NAME, args)); ex.setErrorCode(ERROR_GETTING_HOST_NAME); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorCreatingJMSConnection(String topicName, String topicFactory, Hashtable contextProperties, Throwable internalEx) { Object[] args = { topicName, topicFactory, contextProperties }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_CREATING_JMS_CONNECTION, args)); ex.setErrorCode(ERROR_CREATING_JMS_CONNECTION); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorProcessingRemoteCommand(String connection, String messageId, String sourceServiceId, String commandClassName, Throwable internalEx) { Object[] args = { connection, messageId, sourceServiceId, commandClassName }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_PROCESSING_REMOTE_COMMAND, args)); ex.setErrorCode(ERROR_PROCESSING_REMOTE_COMMAND); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorObtainingContext(Exception internalEx) { RemoteCommandManagerException ex; Object[] args = { }; ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_OBTAINING_CONTEXT_FOR_JNDI, args)); ex.setErrorCode(ERROR_OBTAINING_CONTEXT_FOR_JNDI); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorSerializeOrDeserialzeCommand(Exception internalEx) { RemoteCommandManagerException ex; Object[] args = { }; ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_SERIALIZE_OR_DESERIALIZE_COMMAND, args)); ex.setErrorCode(ERROR_SERIALIZE_OR_DESERIALIZE_COMMAND); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorLookingUpRemoteConnection(String remoteName, String url, Exception internalEx) { RemoteCommandManagerException ex; Object[] args = { remoteName, url }; ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_LOOKING_UP_REMOTE_CONNECTION, args)); ex.setErrorCode(ERROR_LOOKING_UP_REMOTE_CONNECTION); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorCreatingLocalJMSConnection(String topicName, String topicFactory, Throwable internalEx) { Object[] args = { topicName, topicFactory }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_CREATING_LOCAL_JMS_CONNECTION, args)); ex.setErrorCode(ERROR_CREATING_LOCAL_JMS_CONNECTION); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorSerializeOrDeserialzeCommand(Exception internalEx) { RemoteCommandManagerException ex; Object[] args = { }; ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_SERIALIZE_OR_DESERIALIZE_COMMAND, args)); ex.setErrorCode(ERROR_SERIALIZE_OR_DESERIALIZE_COMMAND); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorUnbindingLocalConnection(String unbindName, Exception internalEx) { RemoteCommandManagerException ex; Object[] args = { unbindName }; ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_UNBINDING_LOCAL_CONNECTION, args)); ex.setErrorCode(ERROR_UNBINDING_LOCAL_CONNECTION); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }
public static RemoteCommandManagerException errorReceivingJMSMessage(Exception internalEx) { Object[] args = { }; RemoteCommandManagerException ex = new RemoteCommandManagerException(ExceptionMessageGenerator.buildMessage(RemoteCommandManagerException.class, ERROR_RECEIVING_JMS_MESSAGE, args)); ex.setErrorCode(ERROR_RECEIVING_JMS_MESSAGE); if (internalEx != null) { ex.setInternalException(internalEx); } return ex; }