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

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


        // prevent instantiation
    }

    public static RuntimeException unknownScriptingLanguage(String name)
    {
        return new UnhandledException("No scripting engine found for: " + name);
    }
View Full Code Here


        return new UnhandledException("No scripting engine found for: " + name);
    }

    public static RuntimeException noScriptingLanguageAvailable()
    {
        return new UnhandledException("No bean of type " + LanguageBean.class.getName() + " found!");
    }
View Full Code Here

        return new UnhandledException("No bean of type " + LanguageBean.class.getName() + " found!");
    }

    public static RuntimeException noScriptingLanguageAvailableFor(Class<? extends Language> languageType)
    {
        return new UnhandledException("No language is mapped to " + languageType.getName());
    }
View Full Code Here

    }

    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

            foundLanguage.getClass().getName() + " with " + newLanguage.getClass().getName());
    }

    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

                }
            }
        }
        catch (IllegalAccessException e)
        {
            throw new UnhandledException(e);
        }
        catch (InvocationTargetException e)
        {
            throw new UnhandledException(e);
        }
    }
View Full Code Here

            initialContext.unbind(name);

        }
        catch (NamingException e)
        {
            throw new UnhandledException("Could not unbind " + name + " from JNDI", e);
        }
    }
View Full Code Here

            return null;
        }
        catch (NamingException e)
        {
            throw new UnhandledException("Could not get " + name + " from JNDI", e);
        }
    }
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

            return (T)scriptEngine.eval(this.script, scriptBindings);
        }
        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.