Package org.apache.isis.applib.services.exceprecog

Examples of org.apache.isis.applib.services.exceprecog.ExceptionRecognizerComposite


        if(inIsisSession()) {
            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 {
View Full Code Here


       
        // REVIEW: this code is similar to stuff in EntityPropertiesForm, perhaps move up to superclass?
        // REVIEW: similar code also in WebRequestCycleForIsis; combine?
       
        final List<ExceptionRecognizer> exceptionRecognizers = getServicesInjector().lookupServices(ExceptionRecognizer.class);
        final String message = new ExceptionRecognizerComposite(exceptionRecognizers).recognize(ex);
        return message;
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.services.exceprecog.ExceptionRecognizerComposite

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.