org.apache.activemq.artemis.logs.ActiveMQUtilBundle_impl Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
/** 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.logs.ActiveMQUtilBundle */
package org.apache.activemq.artemis.logs;
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="20[0-9]{4}", projectCode="AMQ")
public class ActiveMQUtilBundle_impl implements ActiveMQUtilBundle
{
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 ActiveMQUtilBundle_impl(Logger logger ) {
this.logger = logger;
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=209000, value=\"invalid property: {}\")
@Override
public org.apache.activemq.artemis.api.core.ActiveMQIllegalStateException invalidProperty(java.lang.String part) {
String returnString = MessageFormatter.arrayFormat("AMQ209000: invalid property: {}", new Object[]{part}).getMessage();
{
org.apache.activemq.artemis.api.core.ActiveMQIllegalStateException objReturn_invalidProperty = new org.apache.activemq.artemis.api.core.ActiveMQIllegalStateException(returnString);
_copyStackTraceMinusOne(objReturn_invalidProperty);
return objReturn_invalidProperty;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=209001, value=\"Invalid type: {}\")
@Override
public java.lang.IllegalStateException invalidType(java.lang.Byte type) {
String returnString = MessageFormatter.arrayFormat("AMQ209001: Invalid type: {}", new Object[]{type}).getMessage();
{
java.lang.IllegalStateException objReturn_invalidType = new java.lang.IllegalStateException(returnString);
_copyStackTraceMinusOne(objReturn_invalidType);
return objReturn_invalidType;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=209002, value=\"the specified string is too long ({})\")
@Override
public java.lang.IllegalStateException stringTooLong(java.lang.Integer length) {
String returnString = MessageFormatter.arrayFormat("AMQ209002: the specified string is too long ({})", new Object[]{length}).getMessage();
{
java.lang.IllegalStateException objReturn_stringTooLong = new java.lang.IllegalStateException(returnString);
_copyStackTraceMinusOne(objReturn_stringTooLong);
return objReturn_stringTooLong;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=209003, value=\"Error instantiating codec {}\")
@Override
public java.lang.IllegalArgumentException errorCreatingCodec(java.lang.String codecClassName, java.lang.Exception e) {
String returnString = MessageFormatter.arrayFormat("AMQ209003: Error instantiating codec {}", new Object[]{codecClassName, e}).getMessage();
{
java.lang.IllegalArgumentException objReturn_errorCreatingCodec = new java.lang.IllegalArgumentException(returnString);
objReturn_errorCreatingCodec.initCause(e);
_copyStackTraceMinusOne(objReturn_errorCreatingCodec);
return objReturn_errorCreatingCodec;
}
}
// @org.apache.activemq.artemis.logs.annotation.Message(id=209004, value=\"Failed to parse long value from {}\")
@Override
public java.lang.IllegalArgumentException failedToParseLong(java.lang.String value) {
String returnString = MessageFormatter.arrayFormat("AMQ209004: Failed to parse long value from {}", new Object[]{value}).getMessage();
{
java.lang.IllegalArgumentException objReturn_failedToParseLong = new java.lang.IllegalArgumentException(returnString);
_copyStackTraceMinusOne(objReturn_failedToParseLong);
return objReturn_failedToParseLong;
}
}
}