Package ca.simplegames.micro

Examples of ca.simplegames.micro.RedirectException


            }
            // return bsfManager.lookupBean(Globals.SCRIPT_CONTROLLER_RESPONSE);
        } catch (BSFException e) {
            // check is stupid BSF is eating all the exceptions again >:/
            if (e.getMessage() != null && e.getMessage().contains(RedirectException.class.getName())) {
                throw new RedirectException(); // stupid ...
            } else {
                throw new ControllerException(
                        String.format("error while executing: %s; details: %s", controllerName, e.getMessage()));
            }
        }
View Full Code Here


        } catch (Exception e) { // ugly, todo: please refactor me
            if (e instanceof FileNotFoundException || e.getCause() instanceof FileNotFoundException) {
                throw new FileNotFoundException(e.getMessage());
            } else if (e instanceof RedirectException || e.getCause() instanceof RedirectException) {
                throw new RedirectException();
            }

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

            } catch (FileNotFoundException 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

            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.RedirectException

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.