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

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


            }
            return getCurrentScriptEngineManager().getEngineByName(language).eval(script);
        }
        catch (ScriptException e)
        {
            throw new UnhandledException(e);
        }
    }
View Full Code Here


     * @param name unknown name
     * @return exception which can be thrown
     */
    public static RuntimeException unknownScriptingLanguage(String name)
    {
        return new UnhandledException("No scripting engine found for: " + name);
    }
View Full Code Here

     * 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(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

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.