Package de.iritgo.aktera.model

Examples of de.iritgo.aktera.model.ModelException


        {
          handler = (FormularHandler) Class.forName(handlerClassName).newInstance();
        }
        catch (ClassNotFoundException x)
        {
          throw new ModelException("[aktera.save] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
        catch (InstantiationException x)
        {
          throw new ModelException("[aktera.save] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
        catch (IllegalAccessException x)
        {
          throw new ModelException("[aktera.save] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
      }
      else
      {
        String handlerBeanName = ModelTools.getConfigString(configPath, "handler", "bean", null);
View Full Code Here


  {
    FieldDescriptor field = fieldsByKey.get(key);

    if (field == null)
    {
      throw new ModelException("Unable to find field '" + key + "' in group '" + label + "'");
    }

    return field;
  }
View Full Code Here

      }
    }
    catch (ConfigurationException x)
    {
      log.error(x.toString());
      throw new ModelException(x);
    }
    catch (PersistenceException x)
    {
      log.error(x.toString());
      throw new ModelException(x);
    }

    return res;
  }
View Full Code Here

        {
          handler = (FormularHandler) Class.forName(handlerClassName).newInstance();
        }
        catch (ClassNotFoundException x)
        {
          throw new ModelException("[aktera.delete] Unable to create handler " + handlerClassName + " (" + x
              + ")");
        }
        catch (InstantiationException x)
        {
          throw new ModelException("[aktera.delete] Unable to create handler " + handlerClassName + " (" + x
              + ")");
        }
        catch (IllegalAccessException x)
        {
          throw new ModelException("[aktera.delete] Unable to create handler " + handlerClassName + " (" + x
              + ")");
        }
      }
      else
      {
View Full Code Here

      System.out.println(x.toString());
      System.out.println(sw.toString());
    }

    return new ModelException(x.toString());
  }
View Full Code Here

      output.setContent(formular);
      res.add(output);
    }
    catch (ConfigurationException x)
    {
      throw new ModelException(x);
    }

    return res;
  }
View Full Code Here

      if (name != null)
      {
        if (id != null)
        {
          throw new ModelException("Both id and name specified for group '" + id + "'");
        }

        String groupBundle = groupConfig.getAttribute("bundle", formular.getBundle());

        GroupDescriptor group = formular.addGroup(name, groupBundle);
View Full Code Here

      if (id != null)
      {
        if (name != null)
        {
          throw new ModelException("Both id and name specified for group '" + id + "'");
        }

        GroupDescriptor group = formular.getGroup(id);

        if (group == null)
        {
          throw new ModelException("Unable to find group '" + id + "'");
        }

        Configuration[] groupChildren = groupConfig.getChildren();

        for (Configuration childConfig : groupChildren)
        {
          if ("field".equals(childConfig.getName()))
          {
            String fieldId = childConfig.getAttribute("id", null);
            String fieldName = childConfig.getAttribute("id", null);

            if (id != null && name != null)
            {
              throw new ModelException("Both id and name specified for field '" + id + "'");
            }

            if (id != null)
            {
              FieldDescriptor field = group.getField(fieldId);

              if (field == null)
              {
                throw new ModelException("Unable to find field '" + fieldId + "' in group '" + id + "'");
              }

              createCommandsForField(childConfig, formular, field);
            }
          }
View Full Code Here

        elements = new HashMap();
      }

      if (! (re instanceof AbstractMessageResponseElement))
      {
        throw new ModelException("Cannot add a '" + re.getClass().getName() + "' here");
      }

      String name = re.getName();

      if (name == null)
View Full Code Here

    return errorNameToUse;
  }

  public void addError(String errorName, String errorMessage)
  {
    ModelException me = new ModelException("Application Error");

    me.fillInStackTrace();

    addError(errorName, me);
  }
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.model.ModelException

Copyright © 2018 www.massapicom. 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.