Package com.ocpsoft.pretty

Examples of com.ocpsoft.pretty.PrettyException


            {
                result = URLDecoder.decode(value, "UTF-8");
            }
            catch (Exception e)
            {
                throw new PrettyException("Could not URLDecode value <" + value + ">", e);
            }
        }
        return result;
    }
View Full Code Here


         {
            configParser.parse(builder, is);
         }
         catch (Exception e)
         {
            throw new PrettyException("Failed to parse PrettyFaces configuration from " + DEFAULT_PRETTY_FACES_CONFIG,
                     e);
         }
         finally
         {
            try
View Full Code Here

            Processor processor = (Processor) processorClass.newInstance();
            result = processor.processInbound(request, response, rule, url);
         }
         catch (Exception e)
         {
            throw new PrettyException("Error occurred exececuting processor of type: " + rule.getProcessor()
                        + ", for input URL <[" + url + "]>", e);
         }
      }
      return result;
   }
View Full Code Here

            Processor processor = (Processor) processorClass.newInstance();
            result = processor.processOutbound(request, response, rule, url);
         }
         catch (Exception e)
         {
            throw new PrettyException("Error occurred exececuting processor of type: " + rule.getProcessor()
                        + ", for input URL <[" + url + "]>", e);
         }
      }
      return result;
   }
View Full Code Here

         result = p.process(result);
      }

      if (result == null)
      {
         throw new PrettyException("Malformed EL expression: " + expression + ", discovered.");
      }

      return result;
   }
View Full Code Here

         log.trace("Setting config into ServletContext");
         servletContext.setAttribute(PrettyContext.CONFIG_KEY, config);
      }
      catch (Exception e)
      {
         throw new PrettyException("Failed to load configuration.", e);
      }
   }
View Full Code Here

         webXmlParser.parse(servletContext);
         return dynaview.buildDynaViewId(webXmlParser.getFacesMapping());
      }
      catch (Exception e)
      {
         throw new PrettyException("Could not retrieve DynaViewId.", e);
      }
   }
View Full Code Here

               }

            }
            catch (Exception e)
            {
               throw new PrettyException("PrettyFaces: Exception occurred while processing <" + mapping.getId() + ":"
                        + el + "> for URL <" + url + ">", e);
            }
         }
      }
   }
View Full Code Here

                  }
               }
               catch (Exception e)
               {
                  throw new PrettyException(
                           "PrettyFaces: Exception occurred while processing mapping<" + mapping.getId() + ":" + el
                                    + "> for query parameter named<" + name + "> " + e.getMessage(), e);
               }
            }
         }
View Full Code Here

      catch (Exception e)
      {
         log.error("Failed to process dynaview", e);
         PrettyRedirector prettyRedirector = new PrettyRedirector();
         prettyRedirector.send404(facesContext);
         throw new PrettyException("Could not forward to view: " + viewId + "", e);
      }
   }
View Full Code Here

TOP

Related Classes of com.ocpsoft.pretty.PrettyException

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.