Examples of ControllerException


Examples of org.apache.torque.generator.control.ControllerException

                        file,
                        charset);
            }
            catch (IOException e)
            {
                throw new ControllerException(
                        "Could not read file \""
                            + file.getAbsolutePath()
                            + "\"",
                        e);
            }
View Full Code Here

Examples of org.apache.torque.generator.control.ControllerException

        {
            FileUtils.writeStringToFile(file, content, charset);
        }
        catch (IOException e)
        {
            throw new ControllerException(
                    "Could not write file \""
                        + file.getAbsolutePath()
                        + "\"",
                    e);
        }
View Full Code Here

Examples of org.apache.torque.generator.control.ControllerException

                        result);
            }
        }
        catch (IOException e)
        {
            throw new ControllerException(
                    "Could not write file \""
                        + outputFile.getAbsolutePath()
                        + "\"",
                    e);
        }
View Full Code Here

Examples of org.apache.torque.generator.control.ControllerException

                        generationResult.getByteArrayResult());
            }
        }
        catch (IOException e)
        {
            throw new ControllerException(
                    "Could not write file \""
                        + outputFile.getAbsolutePath()
                        + "\"",
                    e);
        }
View Full Code Here

Examples of org.japura.controller.ControllerException

  @Override
  public final <E> E get(Class<E> clss) {
  ChildController cc = clss.getAnnotation(ChildController.class);
  if (cc != null && cc.getOnlyFromGroup()) {
    throw new ControllerException(
      "You need get the child controller "
        + clss.getName()
        + " through the group. Use getGroup().get() or Controller.getFromGroup() method.");
  }
View Full Code Here

Examples of org.japura.controller.ControllerException

    try {
    Constructor<E> constructor =
      controllerClass.getConstructor(Context.class, Controller.class);
    controller = constructor.newInstance(context, parentController);
    } catch (NoSuchMethodException e) {
    throw new ControllerException(
      controllerClass.getName()
        + " must have a constructor with context and parent controller parameters.",
      e);
    } catch (Exception e) {
    throw new ControllerException("Controller constructor error", e);
    }
  } else {
    throw new IllegalArgumentException("Not a supported controller class: "
      + controllerClass.getName());
  }
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.ControllerException

            return handleExpiration();
        }

        // Verify session integrity
        if (!verifySession(session)) {
            throw new ControllerException("Session verification failed.");
        }

        return true;
    }
View Full Code Here

Examples of org.opentides.ControllerException

          }
        }

      else if (isRequireUpload()) {
        errors.reject(htmlId, null, "No uploaded file selected.");
        throw new ControllerException("No uploaded file selected.");
      }

      return files;
    }
View Full Code Here

Examples of org.opentides.ControllerException

      }
    } catch (IOException e) {
      String message = "Unable to upload jasper file.";
      _log.error(message, e);
      errors.reject("jasperFile", null, message);
      throw new ControllerException(message, e);
    }
    try {
      processUpload(request, response, command, errors, "jrxmlFile");
    } catch (IOException e) {
      String message = "Unable to upload jrxml file.";
      _log.error(message, e);
      errors.reject("jrxmlFile", null, message);
      throw new ControllerException(message, e);
    }   
  }
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.