org.apache.activemq.artemis.ra.ActiveMQRABundle_impl Maven / Gradle / Ivy
The newest version!
/** This class is auto generated by org.apache.activemq.artemis.logs.annotation.processor.LogAnnotationProcessor
and it inherits whatever license is declared at org.apache.activemq.artemis.ra.ActiveMQRABundle */
package org.apache.activemq.artemis.ra;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.helpers.FormattingTuple;
import org.slf4j.helpers.MessageFormatter;
// @org.apache.activemq.artemis.logs.annotation.LogBundle(regexID="15[0-9]{4}", projectCode="AMQ")
public class ActiveMQRABundle_impl implements ActiveMQRABundle
{
private final Logger logger;
private static void _copyStackTraceMinusOne(final Throwable e) {
final StackTraceElement[] st = e.getStackTrace();
e.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
}
public ActiveMQRABundle_impl(Logger logger ) {
this.logger = logger;
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=159000, value=\"Error decoding password using codec instance\")
@Override
public org.apache.activemq.artemis.api.core.ActiveMQIllegalStateException errorDecodingPassword(java.lang.Exception e) {
String returnString = MessageFormatter.arrayFormat("AMQ159000: Error decoding password using codec instance", new Object[]{e}).getMessage();
{
org.apache.activemq.artemis.api.core.ActiveMQIllegalStateException objReturn_errorDecodingPassword = new org.apache.activemq.artemis.api.core.ActiveMQIllegalStateException(returnString);
objReturn_errorDecodingPassword.initCause(e);
_copyStackTraceMinusOne(objReturn_errorDecodingPassword);
return objReturn_errorDecodingPassword;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=159001, value=\"MDB cannot be deployed as it has no Activation Spec. Please provide an Activation!\")
@Override
public javax.resource.NotSupportedException noActivationSpec() {
String returnString = "AMQ159001: MDB cannot be deployed as it has no Activation Spec. Please provide an Activation!";
{
javax.resource.NotSupportedException objReturn_noActivationSpec = new javax.resource.NotSupportedException(returnString);
_copyStackTraceMinusOne(objReturn_noActivationSpec);
return objReturn_noActivationSpec;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=159002, value=\"Please provide a destination for the MDB\")
@Override
public java.lang.IllegalArgumentException noDestinationName() {
String returnString = "AMQ159002: Please provide a destination for the MDB";
{
java.lang.IllegalArgumentException objReturn_noDestinationName = new java.lang.IllegalArgumentException(returnString);
_copyStackTraceMinusOne(objReturn_noDestinationName);
return objReturn_noDestinationName;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=159003, value=\"This method is not applicable inside the application server. See the JEE spec, e.g. JEE 7 Section 6.7\")
@Override
public javax.jms.JMSRuntimeException illegalJEEMethod() {
String returnString = "AMQ159003: This method is not applicable inside the application server. See the JEE spec, e.g. JEE 7 Section 6.7";
{
javax.jms.JMSRuntimeException objReturn_illegalJEEMethod = new javax.jms.JMSRuntimeException(returnString);
_copyStackTraceMinusOne(objReturn_illegalJEEMethod);
return objReturn_illegalJEEMethod;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=159004, value=\"Invalid Session Mode SESSION_TRANSACTED\")
@Override
public javax.jms.JMSRuntimeException invalidSessionTransactedModeRuntime() {
String returnString = "AMQ159004: Invalid Session Mode SESSION_TRANSACTED";
{
javax.jms.JMSRuntimeException objReturn_invalidSessionTransactedModeRuntime = new javax.jms.JMSRuntimeException(returnString);
_copyStackTraceMinusOne(objReturn_invalidSessionTransactedModeRuntime);
return objReturn_invalidSessionTransactedModeRuntime;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=159005, value=\"Invalid Session Mode CLIENT_ACKNOWLEDGE\")
@Override
public javax.jms.JMSRuntimeException invalidClientAcknowledgeModeRuntime() {
String returnString = "AMQ159005: Invalid Session Mode CLIENT_ACKNOWLEDGE";
{
javax.jms.JMSRuntimeException objReturn_invalidClientAcknowledgeModeRuntime = new javax.jms.JMSRuntimeException(returnString);
_copyStackTraceMinusOne(objReturn_invalidClientAcknowledgeModeRuntime);
return objReturn_invalidClientAcknowledgeModeRuntime;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=159006, value=\"Invalid Session Mode {}\")
@Override
public javax.jms.JMSRuntimeException invalidAcknowledgeMode(int sessionMode) {
String returnString = MessageFormatter.arrayFormat("AMQ159006: Invalid Session Mode {}", new Object[]{sessionMode}).getMessage();
{
javax.jms.JMSRuntimeException objReturn_invalidAcknowledgeMode = new javax.jms.JMSRuntimeException(returnString);
_copyStackTraceMinusOne(objReturn_invalidAcknowledgeMode);
return objReturn_invalidAcknowledgeMode;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=159007, value=\"Invalid Session Mode SESSION_TRANSACTED, to enable Local Transacted Sessions you can set the allowLocalTransactions (allow-local-transactions) on the resource adapter\")
@Override
public javax.jms.JMSException invalidSessionTransactedModeRuntimeAllowLocal() {
String returnString = "AMQ159007: Invalid Session Mode SESSION_TRANSACTED, to enable Local Transacted Sessions you can set the allowLocalTransactions (allow-local-transactions) on the resource adapter";
{
javax.jms.JMSException objReturn_invalidSessionTransactedModeRuntimeAllowLocal = new javax.jms.JMSException(returnString);
_copyStackTraceMinusOne(objReturn_invalidSessionTransactedModeRuntimeAllowLocal);
return objReturn_invalidSessionTransactedModeRuntimeAllowLocal;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy