Examples of BugException


Examples of evolaris.framework.sys.business.exception.BugException

    Long userSetId = userSetAssociationListForm.getUserSetId();

    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": Modify request with user set ID `" + userSetId + "`");

    if (userSetId == null){
      throw new BugException("missing user set id");
    }
    UserSetManager userSetManager = new UserSetManager(locale,session);
    UserSet userSet = userSetManager.getUserSet(userSetId);
    checkAccessRights(req, userSet.getGroup());
    String[] choosen = userSetAssociationListForm.getChoosen();
View Full Code Here

Examples of evolaris.framework.sys.business.exception.BugException

    if (selectedRoleIds != null){
      for (String selectedRoleId : selectedRoleIds) {
        UserManager userManager = new UserManager(locale,session);
        Role role = userManager.getRole(Long.parseLong(selectedRoleId));
        if (role == null){
          throw new BugException("illegal role id");
        }
        roles.add(role);
      }
    }
    user.setRoles(roles)// may even be empty
View Full Code Here

Examples of evolaris.framework.sys.business.exception.BugException

      } else {
        return null;
      }
     
    } catch(ParseException e) {
      throw new BugException("validation of date and time failed");
    }
  }
View Full Code Here

Examples of evolaris.framework.sys.business.exception.BugException

                user = userManager.registerUserByEmail(email.getEmailSender(), invocation.getGroup());
                eventParameters = new EmailEventParameters(Locale.GERMAN,session,user,invocation, email);
                eventParameters.updateInteractionLog(log);
                interactionLogManager.writeInteractionLog(log);
              } else {
                throw new BugException("unsupported message type: " + messageObject.getClass().getName());
              }

              interactionLogManager.writeInteractionLog(log);

              Set commandEntries = invocation.getCommandEntries();
View Full Code Here

Examples of evolaris.framework.sys.business.exception.BugException

     
      return importResult;
    } catch (IOException e) {
      throw new InputException(messages.getString("ErrorDuringReadingTheFile"),e);
    catch (NoSuchMethodException e) {
      throw new BugException("a caption to method mapping is invalid",e);
    catch (IllegalAccessException e) {
      throw new BugException("a caption to method mapping is invalid",e);
    } catch (InvocationTargetException e) {
      throw new BugException("a caption to method mapping is invalid",e);
    }
  }
View Full Code Here

Examples of evolaris.framework.sys.business.exception.BugException

   */
  @Override
  public ActionForward execute(Exception exception, ExceptionConfig arg1, ActionMapping mapping, ActionForm arg3, HttpServletRequest req, HttpServletResponse arg5) throws ServletException {
    String userName = req.getUserPrincipal() == null ? "`ANONYMOUS USER`" : req.getUserPrincipal().getName().toLowerCase();     
    correctStrutsLocale(req);
    BugException e = (BugException) exception;
    e.generalLog(userName);
    String message = e.getUserMessage();
    req.setAttribute("userMessage",message)// may be null => page has to prepare a default
    return mapping.findForward("bugErrorPage");
  }
View Full Code Here

Examples of evolaris.framework.sys.business.exception.BugException

          String generalInformation = getResources(req).getMessage(locale, "smssvc.asyncSendStarted", new Object[] {new Integer(receivers.size()), formattedDate});
          req.setAttribute("generalInformation", generalInformation);
          return mapping.findForward("sent");
        }
      } catch (NumberFormatException e){
        throw new BugException("validation of countryCode and mobileNumber failed");
      }
    default:
      String noDestinationSelectedString = getResources(req).getMessage(locale,"smssvc.noDestinationSelected");
      req.setAttribute("generalError",noDestinationSelectedString);
      return mapping.findForward("notSent");
View Full Code Here

Examples of evolaris.framework.sys.business.exception.BugException

  /* Send message to set of users, checking access rights and creating information/error messages */
  private ActionForward sendToUsersWithMsisdn(SmsSourceAddress fromAddress, Set<User> users, ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp, Date sendAt) {
    SmsSendForm msgForm = (SmsSendForm) form;
    for (User user : users) {
      if (!req.isUserInRole(UserManagerBase.ADMINISTRATOR) && user.getGroup() != webUser.getGroup()){
        throw new BugException("user selected as SMS destination, who must not be accessed: " + user.getId());
      }
    }
    SortedSet<SmsDestinationAddress> receivers = SmsDestinationAddress.smsDestinationAddresses(users);
    if (receivers.size() == 0) {
      String noUsersWithMsisdnsString = getResources(req).getMessage(locale,"smssvc.noUsersWithMsisdns");
View Full Code Here

Examples of freemarker.core.BugException

                }
            }
            else
            {
                // Cannot happen
                throw new BugException();
            }
        }
        catch (TemplateModelException e)
        {
            throw e;
View Full Code Here

Examples of freemarker.core.BugException

                    if (regedMf instanceof ClassBasedModelFactory) {
                        ((ClassBasedModelFactory) regedMf).clearCache();
                    } else if (regedMf instanceof ModelCache) {
                        ((ModelCache) regedMf).clearCache();
                    } else {
                        throw new BugException();
                    }
                }
            }

            removeClearedModelFactoryReferences();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.