Package ca.simplegames.micro.viewers

Examples of ca.simplegames.micro.viewers.ViewException


            }

            if (e.getCause() != null && e.getCause() instanceof ControllerException) {
                throw new ControllerException(e.getMessage());
            }
            throw new ViewException(e.getMessage());
        }
    }
View Full Code Here


                throw new FileNotFoundException(String.format("%s not found.", path));
            } catch (Exception e) {
                if (e instanceof RedirectException || e.getCause() instanceof RedirectException) {
                    throw new RedirectException();
                } else {
                    throw new ViewException(e.getMessage()); // generic??
                }
            }
        }
        return 0;    }
View Full Code Here

                        repository.getSite().getControllerManager().execute(
                                filterDef.getKey(), context, (Map) filterDef.getValue());
                    } catch (Exception e) {
                        log.error(String.format("Error while evaluating the BEFORE filter: `%s`", filterDef.getKey()));
                        e.printStackTrace();
                        throw new ViewException(e.getMessage());
                    }
                }
            }

View Full Code Here

            template.process(context, out);

            return IO.copy(new StringReader(writer.toString()), out);

        } catch (TemplateException e) {
            throw new ViewException(e.getMessage());
        } catch (IOException e) {
            throw new FileNotFoundException(String.format("%s not found.", path));
        } catch (Exception e) {
            if (e instanceof RedirectException || e.getCause() instanceof RedirectException) {
                throw new RedirectException();
            }else{
                throw new ViewException(e.getMessage()); // generic??
            }
        }
    }
View Full Code Here

TOP

Related Classes of ca.simplegames.micro.viewers.ViewException

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.