Package org.apache.myfaces.extensions.cdi.core.api

Examples of org.apache.myfaces.extensions.cdi.core.api.UnhandledException


     * Creates an exception if there is no script-language type available
     * @return exception which can be thrown
     */
    public static RuntimeException noScriptingLanguageAvailable()
    {
        return new UnhandledException("No bean of type " + LanguageBean.class.getName() + " found!");
    }
View Full Code Here


     * @param languageType unknown language type
     * @return exception which can be thrown
     */
    public static RuntimeException noScriptingLanguageAvailableFor(Class<? extends Language> languageType)
    {
        return new UnhandledException("No language is mapped to " + languageType.getName());
    }
View Full Code Here

     * @return exception which can be thrown
     */
    public static RuntimeException ambiguousLanguageDefinition(
            Class<? extends Language> id, Language foundLanguage, Language newLanguage)
    {
        return new UnhandledException("Invalid approach detected to replace " + id.getName() + ". Can't replace " +
            foundLanguage.getClass().getName() + " with " + newLanguage.getClass().getName());
    }
View Full Code Here

     * @param newValueHint name of the argument
     * @return exception which can be thrown
     */
    public static RuntimeException overrideBuilderState(String newValueHint)
    {
        return new UnhandledException("Invalid script builder (" + ScriptBuilder.class.getName() + ") state. " +
            "It isn't allowed to override the existing state of the builder with new " + newValueHint);
    }
View Full Code Here

        {
            throw e;
        }
        catch (Exception e)
        {
            throw new UnhandledException("Exception in method call : " + method.getName(), e);
        }
        finally
        {
            // reset accessible value
            method.setAccessible(accessible);
View Full Code Here

            // add requst-parameters e.g. for f:viewParam handling
            windowHandler.sendRedirect(FacesContext.getCurrentInstance().getExternalContext(), targetURL, true);
        }
        catch (IOException e)
        {
            throw new UnhandledException(e);
        }
    }
View Full Code Here

            return (T)getScriptEngine().eval(this.script, scriptBindings);
        }
        catch (ScriptException e)
        {
            throw new UnhandledException(e);
        }
    }
View Full Code Here

            //noinspection unchecked
            return (T)getScriptEngine().eval(script);
        }
        catch (ScriptException e)
        {
            throw new UnhandledException(e);
        }
    }
View Full Code Here

            //noinspection unchecked
            return (T)getScriptEngine().eval(script, bindings);
        }
        catch (ScriptException e)
        {
            throw new UnhandledException(e);
        }
    }
View Full Code Here

     * Creates an exception which signals that a user opened too many windows.
     * @return exception which can be thrown
     */
    public static RuntimeException tooManyOpenWindowException()
    {
        return new UnhandledException("Too many active windows/tabs have been opened!" +
            " Please continue with one of the existing windows.");
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.cdi.core.api.UnhandledException

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.