Ejemplo n.º 1
0
 public static EISException createResourceException(Object[] args, int errorCode) {
   ResourceException resourceException =
       new ResourceException(
           ExceptionMessageGenerator.buildMessage(EISException.class, errorCode, args));
   EISException exception = new EISException(resourceException);
   exception.setErrorCode(RESOURCE_EXCEPTION);
   exception.setInternalException(resourceException);
   return exception;
 }
Ejemplo n.º 2
0
 public static EISException resourceException(
     Exception resourceException, EISAccessor accessor, AbstractSession session) {
   EISException exception = new EISException(resourceException);
   exception.setErrorCode(RESOURCE_EXCEPTION);
   exception.setInternalException(resourceException);
   exception.setAccessor(accessor);
   exception.setSession(session);
   return exception;
 }