예제 #1
0
 /**
  * loads the class from the class loader of the specified WireContext.
  *
  * @throws WireException if the class could not be loaded.
  */
 public Object construct(WireContext wireContext) {
   ClassLoader classLoader = wireContext.getClassLoader();
   try {
     return ReflectUtil.loadClass(classLoader, text);
   } catch (BonitaRuntimeException e) {
     Throwable cause = e.getCause();
     String message =
         ExceptionManager.getInstance().getFullMessage("bp_CD_1", text, cause.getMessage());
     throw new WireException(message, cause);
   }
 }
예제 #2
0
 public CategoryNotFoundException(final String name) {
   super(ExceptionManager.getInstance().getMessage("CAEE", name));
   this.name = name;
 }