@Override public CompileError addIssue(String issueDescription) { return officeArchitect.addIssue(issueDescription); } };
this.officeArchitect.addIssue("Parameter must be " + String.class.getName() + " but was " + objectType.getName() + " for function " + context.getManagedFunctionName());
@Override public OfficeFlowSinkNode getRedirect(String parameterTypeName) { // Obtain the parameter type class Class<?> parameterType = CompileUtil.isBlank(parameterTypeName) ? Object.class : WebArchitectEmployer.this.officeSourceContext.loadClass(parameterTypeName); // Determine if already cached OfficeFlowSinkNode flowSinkNode = this.redirects.get(parameterTypeName); if (flowSinkNode != null) { return flowSinkNode; } // Not cached, so create try { // Create the redirect Redirect redirect = WebArchitectEmployer.this.routing.addRedirect(this.isSecure, this.routeInput, parameterType); // Obtain and cache the flow sink node for the redirect flowSinkNode = WebArchitectEmployer.this.routingSection.getOfficeSectionInput(redirect.getInputName()); this.redirects.put(parameterTypeName, flowSinkNode); // Return the section input for redirect return flowSinkNode; } catch (Exception ex) { throw WebArchitectEmployer.this.officeArchitect.addIssue("Failed to create redirect to " + this.applicationPath + (parameterTypeName == null ? " with null value type" : " with values type " + parameterTypeName), ex); } } }
throw this.officeArchitect.addIssue("No " + HttpSecurity.class.getSimpleName() + " configured for qualifier '" + httpSecurityName + "'");
} catch (NoAcceptHandlersException ex) { throw this.officeArchitect .addIssue("Failed to create " + HttpSecurity.class.getSimpleName() + " negotiator", ex);
if (!CompileUtil.isBlank(linkSeparatorCharacter)) { if (linkSeparatorCharacter.length() != 1) { throw officeArchitect.addIssue( "Link separator character must only be one character '" + linkSeparatorCharacter + "'");
} catch (IllegalArgumentException ex) { architect.addIssue("Invalid managed object scope '" + managedObjectScopeName + "' for managed object " + managedObjectName); return; // invalid managed object so do not load