Package org.apache.isis.viewer.wicket.ui.errors

Examples of org.apache.isis.viewer.wicket.ui.errors.ExceptionModel


    /**
     * If set by {@link PageAbstract}.
     */
    private static ExceptionModel getAndClearExceptionModelIfAny() {
        ExceptionModel exceptionModel = PageAbstract.EXCEPTION.get();
        PageAbstract.EXCEPTION.remove();
        return exceptionModel;
    }
View Full Code Here


            exceptionRecognizers = getServicesInjector().lookupServices(ExceptionRecognizer.class);
        } else {
            LOG.warn("Unable to obtain exceptionRecognizers (no session), will be treated as unrecognized exception");
        }
        String recognizedMessageIfAny = new ExceptionRecognizerComposite(exceptionRecognizers).recognize(ex);
        ExceptionModel exceptionModel = ExceptionModel.create(recognizedMessageIfAny, ex);
       
        if( isSignedIn()) {
            return new ErrorPage(exceptionModel);
        } else {
            return new WicketSignInPage(null, exceptionModel);
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.wicket.ui.errors.ExceptionModel

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.