Package org.apache.webbeans.exception

Examples of org.apache.webbeans.exception.WebBeansException


        {
            return PrePassivate.class;
        }
        else
        {
            throw new WebBeansException("Undefined interceotion type");
        }
    }
View Full Code Here


            }
            catch (SecurityException e)
            {
                logger.error("Method security access violation for method " + method.getName() + " for  decorator class : " + decorator.getClass().getName());
                throw new WebBeansException(e);

            }
            catch (NoSuchMethodException e)
            {
                continue;
            }
            catch (InvocationTargetException e)
            {
                logger.error("Exception in calling method " + method.getName() + " for  decorator class : " + decorator.getClass().getName() + ". Look log for target checked exception.", e.getTargetException());
                throw new WebBeansException(e);
            }
            catch (IllegalAccessException e)
            {
                logger.error("Method illegal access for method " + method.getName() + " for  decorator class : " + decorator.getClass().getName());
                throw new WebBeansException(e);
            }
            finally
            {
                this.isInDecoratorCall = false;
            }
View Full Code Here

            {
                return tMgr.getTransaction();
            }
            catch (SystemException e)
            {
                throw new WebBeansException("cannot get transaction context", e);
            }
        }
       
        return null;
    }
View Full Code Here

            field.set(instance, inject(this.injectionPointModel.getInjectionClassType(), this.injectionPointModel.getActualTypeArguments(), anns));

        }
        catch (Exception e)
        {
            throw new WebBeansException(e);
        }

        return null;
    }
View Full Code Here

        }
        catch (Exception e)
        {
            e.printStackTrace();
            throw new WebBeansException(e);
        }

        return instance;
    }
View Full Code Here

        {
            return false;
        }
        else
        {
            throw new WebBeansException("Scope is not correct");
        }

    }
View Full Code Here

            constructor = returnType.getConstructor(new Class<?>[] { Annotation[].class, Class.class });

        }
        catch (SecurityException e)
        {
            throw new WebBeansException("Security exception for getting EventImpl class constructor", e);

        }
        catch (NoSuchMethodException e)
        {
            throw new WebBeansException("No constructor found in EventImpl class", e);
        }

        component.setConstructor(constructor);
        component.setType(new StandardLiteral());
        component.setImplScopeType(new DependentScopeLiteral());                     
View Full Code Here

                {
                    throw e1;
                }
                catch (Exception e)
                {
                    throw new WebBeansException(e);
                }
            }

            intData.setInterceptor(method, annotation);
View Full Code Here

            }
        }
       
        if(managers.size() > 1)
        {
            throw new WebBeansException("There are more than one current activity");
        }
        else
        {
            if(!managers.isEmpty())
            {
View Full Code Here

            result = fact.createClass().newInstance();

        }
        catch (Exception e)
        {
            throw new WebBeansException(e);
        }

        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.exception.WebBeansException

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.