@Override public final IllegalArgumentException cannotInject(final InjectionPoint ip) { final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), cannotInject$str(), ip)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String cannotUseAtRuntime = "WFLYWELD0047: %s cannot be used at runtime";
@Override public final IllegalArgumentException couldNotDetermineUnderlyingType(final Type type) { final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), couldNotDetermineUnderlyingType$str(), type)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String couldNotFindPersistenceUnit = "WFLYWELD0037: Error injecting persistence unit into CDI managed bean. Can't find a persistence unit named '%s' in deployment %s for injection point %s";
@Override public final IllegalArgumentException parameterCannotBeNull(final String param) { final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), parameterCannotBeNull$str(), param)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String injectionPointNotAJavabean = "WFLYWELD0032: Injection point represents a method which doesn't follow JavaBean conventions (must have exactly one parameter) %s";
@Override public final ClassFileInfoException nameNotFoundInIndex(final String name) { final ClassFileInfoException result = new ClassFileInfoException(String.format(getLoggingLocale(), nameNotFoundInIndex$str(), name)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } @Override
@Override public final IllegalStateException cannotUseAtRuntime(final String description) { final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), cannotUseAtRuntime$str(), description)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String rejectAttributesMustBeTrue = "WFLYWELD0048: These attributes must be 'true' for use with CDI 1.0 '%s'";
@Override public final IllegalArgumentException beanDeploymentNotFound(final String beanDeploymentId) { final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), beanDeploymentNotFound$str(), beanDeploymentId)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String couldNotFindResource1 = "WFLYWELD0044: Error injecting resource into CDI managed bean. Can't find a resource named %s";
@Override public final IllegalArgumentException annotationNotFound(final Class<? extends java.lang.annotation.Annotation> type, final Member member) { final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), annotationNotFound$str(), type, member)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String ejbNotResolved = "WFLYWELD0034: Could not resolve @EJB injection for %s on %s";
@Override public final DeploymentUnitProcessingException extensionDoesNotImplementExtension(final Class<?> clazz) { final DeploymentUnitProcessingException result = new DeploymentUnitProcessingException(String.format(getLoggingLocale(), extensionDoesNotImplementExtension$str(), clazz)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String viewNotFoundOnEJB = "WFLYWELD0022: View of type %s not found on EJB %s";
@Override public final IllegalStateException componentInterceptorSupportNotAvailable(final Object componentClass) { final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), componentInterceptorSupportNotAvailable$str(), componentClass)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } @Override
@Override public final ClassFileInfoException cannotLoadClass(final String name, final Throwable throwable) { final ClassFileInfoException result = new ClassFileInfoException(String.format(getLoggingLocale(), cannotLoadClass$str(), name), throwable); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } @Override
@Override public final IllegalStateException alreadyRunning(final String object) { final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), alreadyRunning$str(), object)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String notStarted = "WFLYWELD0041: %s is not started";
@Override public final IllegalStateException ejbNotResolved(final Object ejb, final Member member) { final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), ejbNotResolved$str(), ejb, member)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String moreThanOneEjbResolved = "WFLYWELD0035: Resolved more than one EJB for @EJB injection of %s on %s. Found %s";
@Override public final IllegalArgumentException injectionPointNotAJavabean(final Method method) { final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), injectionPointNotAJavabean$str(), method)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String annotationNotFound = "WFLYWELD0033: %s annotation not found on %s";
@Override public final String rejectAttributesMustBeTrue(final java.util.Set<String> keySet) { return String.format(getLoggingLocale(), rejectAttributesMustBeTrue$str(), keySet); } private static final String couldNotFindResource2 = "WFLYWELD0049: Error injecting resource into CDI managed bean. Can't find a resource named %s defined on %s";
@Override public final IllegalArgumentException cannotDetermineResourceName() { final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), cannotDetermineResourceName$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String cannotInject = "WFLYWELD0046: Cannot inject injection point %s";
@Override public final IllegalArgumentException couldNotFindResource(final String resourceName, final Throwable cause) { final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), couldNotFindResource1$str(), resourceName), cause); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String cannotDetermineResourceName = "WFLYWELD0045: Cannot determine resource name. Both jndiName and mappedName are null";
@Override public final IllegalStateException moreThanOneEjbResolved(final Object ejb, final Member member, final java.util.Set<org.jboss.as.ee.component.ViewDescription> viewService) { final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), moreThanOneEjbResolved$str(), ejb, member, viewService)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String couldNotDetermineUnderlyingType = "WFLYWELD0036: Could not determine bean class from injection point type of %s";
@Override public final IllegalStateException weldNotInitialized() { final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), weldNotInitialized$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } }
@Override public final IllegalStateException singletonNotSet(final ClassLoader classLoader) { final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), singletonNotSet$str(), classLoader)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String alreadyRunning = "WFLYWELD0040: %s is already running";
@Override public final IllegalStateException securityNotEnabled() { final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), securityNotEnabled$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String singletonNotSet = "WFLYWELD0039: Singleton not set for %s. This means that you are trying to access a weld deployment with a Thread Context ClassLoader that is not associated with the deployment.";