Package org.apache.webbeans.exception

Examples of org.apache.webbeans.exception.WebBeansException


            method.invoke(instance, ctx);
        }
        catch (Exception e)
        {
            getLogger().log(Level.SEVERE, e.getMessage(), e);
            throw new WebBeansException(e);
        }

        return null;
    }
View Full Code Here


        }
        catch (IllegalArgumentException e)
        {
            getLogger().log(Level.SEVERE, WebBeansLoggerFacade.constructMessage(OWBLogConst.ERROR_0007, instance.getClass().getName()), e);
            throw new WebBeansException(e);

        }
        catch (IllegalAccessException e)
        {
            getLogger().log(Level.SEVERE, WebBeansLoggerFacade.constructMessage(OWBLogConst.ERROR_0015, delegateField.getName(), instance.getClass().getName()), e);
View Full Code Here

                        return clazz.getDeclaredField((String)parameters);
                    case METHOD_CLASS_GETDECLAREDFIELDS:
                        return clazz.getDeclaredFields();

                    default:
                        return new WebBeansException("unknown security method: " + method);
                }
            }
            catch (Exception exception)
            {
                return exception;
View Full Code Here

                {
                    addExtension(extension);
                }
                catch (Exception e)
                {
                    throw new WebBeansException("Error occurred while reading Extension service list", e);
                }
            }
        }       
    }
View Full Code Here

    private static Logger logger = WebBeansLoggerFacade.getLogger(WebBeansErrorHandler.class);

    public void error(SAXParseException exception) throws SAXException
    {
        logger.log(Level.SEVERE, exception.getMessage(), exception.getCause());
        throw new WebBeansException(exception);
    }
View Full Code Here

    }

    public void fatalError(SAXParseException exception) throws SAXException
    {
        logger.log(Level.SEVERE, exception.getMessage(), exception.getCause());
        throw new WebBeansException(exception);
    }
View Full Code Here

            return root;
        }
        catch (Exception e)
        {
            logger.log(Level.SEVERE, OWBLogConst.FATAL_0002, e);
            throw new WebBeansException(WebBeansLoggerFacade.getTokenString(OWBLogConst.EXCEPT_0013), e);
        }
    }
View Full Code Here

                    throw new UnsupportedOperationException("close method is not supported for JMS resources");
                }

                if (cf == null)
                {
                    throw new WebBeansException("JMS Resource type is not correct!. Does not create JMS resource object to handle request");
                }

                this.jmsObject = cf;
            }
            else
View Full Code Here

        }
        catch (JMSException e)
        {
            ensureConnectionClosing(connection);
            throw new WebBeansException("Unable to create jms session", e);
        }

    }
View Full Code Here

            return connection.createSession(false, Session.AUTO_ACKNOWLEDGE).createProducer(createOrReturnQueueOrTopic());
        }
        catch (JMSException e)
        {
            ensureConnectionClosing(connection);
            throw new WebBeansException("Unable to create jms message producer", e);
        }

    }
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.