@Override public final PatchingException alreadyApplied(final String patchId) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), alreadyApplied$str(), patchId)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String noSuchLayer = "WFLYPAT0013: There is no layer called %s installed";
@Override public final PatchingException cannotRollbackPatch(final String id) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), cannotRollbackPatch$str(), id)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String alreadyApplied = "WFLYPAT0012: Patch '%s' already applied";
@Override public final PatchingException alreadyApplied(final String patchId) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), alreadyApplied$str(), patchId)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String noSuchLayer = "WFLYPAT0013: There is no layer called %s installed";
@Override public final PatchingException doesNotApply(final String appliesTo, final String version) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), doesNotApply$str(), appliesTo, version)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failedToDelete = "WFLYPAT0004: Failed to delete (%s)";
@Override public final PatchingException cannotCopyFilesToTempDir(final String tempDir, final String reason, final Throwable cause) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), cannotCopyFilesToTempDir$str(), tempDir, reason), cause); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String cannotCopyFiles = "WFLYPAT0047: Cannot copy files from %s to %s: %s";
@Override public final PatchingException noSuchLayer(final String name) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), noSuchLayer$str(), name)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failedToResolvePatch = "WFLYPAT0014: Failed to resolve a valid patch descriptor for %s %s";
@Override public final PatchingException failedToResolvePatch(final String product, final String version) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), failedToResolvePatch$str(), product, version)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String requiresPatch = "WFLYPAT0015: Requires patch '%s'";
@Override public final PatchingException noSuchLayer(final String name) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), noSuchLayer$str(), name)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failedToResolvePatch = "WFLYPAT0014: Failed to resolve a valid patch descriptor for %s %s";
@Override public final PatchingException requiresPatch(final String patchId) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), requiresPatch$str(), patchId)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String incompatiblePatch = "WFLYPAT0016: Patch is incompatible with patch '%s'";
@Override public final PatchingException contentItemTypeMissing(final String condition) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), contentItemTypeMissing$str(), condition)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String unsupportedContentType = "WFLYPAT0044: Unsupported content type '%s'";
@Override public final PatchingException unrecognizedConditionFormat(final String condition) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), unrecognizedConditionFormat$str(), condition)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String cannotCopyFilesToTempDir = "WFLYPAT0046: Cannot copy files to temporary directory %s: %s. Note that '-Djava.io.tmpdir' switch can be used to set different temporary directory.";
@Override public final PatchingException doesNotApply(final String appliesTo, final String version) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), doesNotApply$str(), appliesTo, version)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failedToDelete = "WFLYPAT0004: Failed to delete (%s)";
@Override public final PatchingException requiresPatch(final String patchId) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), requiresPatch$str(), patchId)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String incompatiblePatch = "WFLYPAT0016: Patch is incompatible with patch '%s'";
@Override public final PatchingException invalidRollbackInformation() { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), invalidRollbackInformation$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String doesNotApply = "WFLYPAT0003: Patch does not apply - expected (%s), but was (%s)";
@Override public final PatchingException incompatiblePatch(final String patchId) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), incompatiblePatch$str(), patchId)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String conflictsDetected = "WFLYPAT0017: Conflicts detected";
@Override public final PatchingException unrecognizedConditionFormat(final String condition) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), unrecognizedConditionFormat$str(), condition)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String cannotCopyFilesToTempDir = "WFLYPAT0046: Cannot copy files to temporary directory %s: %s. Note that '-Djava.io.tmpdir' switch can be used to set different temporary directory.";
@Override public final PatchingException invalidRollbackInformation() { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), invalidRollbackInformation$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String doesNotApply = "WFLYPAT0003: Patch does not apply - expected (%s), but was (%s)";
@Override public final PatchingException cannotRollbackPatch(final String id) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), cannotRollbackPatch$str(), id)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String alreadyApplied = "WFLYPAT0012: Patch '%s' already applied";
@Override public final PatchingException failedToResolvePatch(final String product, final String version) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), failedToResolvePatch$str(), product, version)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String requiresPatch = "WFLYPAT0015: Requires patch '%s'";
@Override public final PatchingException incompatiblePatch(final String patchId) { final PatchingException result = new PatchingException(String.format(getLoggingLocale(), incompatiblePatch$str(), patchId)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String conflictsDetected = "WFLYPAT0017: Conflicts detected";