org.jberet.se._private.SEBatchMessages_$bundle Maven / Gradle / Ivy
package org.jberet.se._private;
import java.util.Locale;
import java.io.Serializable;
import javax.annotation.Generated;
import javax.batch.operations.BatchRuntimeException;
import javax.batch.runtime.BatchStatus;
import java.lang.Throwable;
import java.lang.String;
import java.util.Arrays;
/**
* Warning this class consists of generated code.
*/
@Generated(value = "org.jboss.logging.processor.generator.model.MessageBundleImplementor", date = "2021-08-02T12:16:21-0400")
public class SEBatchMessages_$bundle implements SEBatchMessages, Serializable {
private static final long serialVersionUID = 1L;
protected SEBatchMessages_$bundle() {}
public static final SEBatchMessages_$bundle INSTANCE = new SEBatchMessages_$bundle();
protected Object readResolve() {
return INSTANCE;
}
private static final Locale LOCALE = Locale.ROOT;
protected Locale getLoggingLocale() {
return LOCALE;
}
protected String failToLoadConfig$str() {
return "JBERET050000: Failed to load configuration file %s";
}
@Override
public final BatchRuntimeException failToLoadConfig(final Throwable th, final String configFile) {
final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failToLoadConfig$str(), configFile), th);
_copyStackTraceMinusOne(result);
return result;
}
private static void _copyStackTraceMinusOne(final Throwable e) {
final StackTraceElement[] st = e.getStackTrace();
e.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
}
protected String failToGetConfigProperty$str() {
return "JBERET050002: Failed to get a valid value for configuration property %s; current value is %s.";
}
@Override
public final BatchRuntimeException failToGetConfigProperty(final String propName, final String value, final Throwable throwable) {
final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failToGetConfigProperty$str(), propName, value), throwable);
_copyStackTraceMinusOne(result);
return result;
}
protected String unrecognizedJobRepositoryType$str() {
return "JBERET050003: Unrecognized job repository type %s";
}
@Override
public final BatchRuntimeException unrecognizedJobRepositoryType(final String v) {
final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), unrecognizedJobRepositoryType$str(), v));
_copyStackTraceMinusOne(result);
return result;
}
protected String jobDidNotComplete$str() {
return "JBERET050004: The job %s did not complete with batch status %s, exit status %s.";
}
@Override
public final BatchRuntimeException jobDidNotComplete(final String jobId, final BatchStatus batchStatus, final String exitStatus) {
final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), jobDidNotComplete$str(), jobId, batchStatus, exitStatus));
_copyStackTraceMinusOne(result);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy