Package org.apache.empire.exceptions

Examples of org.apache.empire.exceptions.InternalException


    }

    protected String getErrorMessage(Throwable e)
    {   // Wrap Exception
        if (!(e instanceof EmpireException))
            e = new InternalException(e);
        // get message
        return getTextResolver().getExceptionMessage((Exception)e);
    }
View Full Code Here


                */
            }
            catch (Exception e)
            {
                log.error("Error creating instance of page bean " + pageBeanClassName, e);
                throw new InternalException(e);
            }
            viewMap.put(pageDef.getPageBeanName(), pageBean);
            viewMap.put("page", pageBean);
        }
        pageBean.setPageDefinition(pageDef);
View Full Code Here

        // create label now
        HtmlOutputLabel label;
        try {
            label = InputControlManager.getLabelComponentClass().newInstance();
        } catch (InstantiationException e1) {
            throw new InternalException(e1);
        } catch (IllegalAccessException e2) {
            throw new InternalException(e2);
        }
       
        // value
        String labelText = getLabelValue(column, colon);
        if (StringUtils.isEmpty(labelText))
View Full Code Here

                BeanUtils.setProperty(item, IDPARAM_PROPERTY, idparam);
            }
            catch (Exception e)
            {
                log.error("Error setting property idparam on bean.", e);
                throw new InternalException(e);
            }
        }
    }
View Full Code Here

                }
                catch (Exception e)
                {
                    String msg = "Error getting property '" + propName + "' from bean.";
                    log.error(msg, e);
                    throw new InternalException(e);
                }
            }
        }
        return key;
    }
View Full Code Here

            return conn;
        }
        catch (SQLException e)
        {
            log.error("Failed to get connection from pool.", e);
            throw new InternalException(e);
        }
    }
View Full Code Here

        HtmlInputText input;
        if (compList.size()==0)
        {   try {
                input = inputComponentClass.newInstance();
            } catch (InstantiationException e1) {
                throw new InternalException(e1);
            } catch (IllegalAccessException e2) {
                throw new InternalException(e2);
            }
            // once
            copyAttributes(parent, ii, input);
            // language
            input.setLang(ii.getLocale().getLanguage());
View Full Code Here

            return conn;
        }
        catch (SQLException e)
        {
            log.error("Failed to get connection from pool.", e);
            throw new InternalException(e);
        }
    }
View Full Code Here

            {   // Create Application
                application = applicationClass.newInstance();
            }
            catch (InstantiationException e)
            {
                throw new InternalException(e);
            }
            catch (IllegalAccessException e)
            {
                throw new InternalException(e);
            }
            // InjectionApplicationFactory.setApplicationInstance(application);
            Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap();
            appMap.put(InjectionApplicationFactory.class.getName(), application);
            // log
View Full Code Here

        // create label now
        HtmlOutputLabel label;
        try {
            label = InputControlManager.getLabelComponentClass().newInstance();
        } catch (InstantiationException e1) {
            throw new InternalException(e1);
        } catch (IllegalAccessException e2) {
            throw new InternalException(e2);
        }
       
        // value
        String labelText = getLabelValue(column, colon);
        if (StringUtils.isEmpty(labelText))
View Full Code Here

TOP

Related Classes of org.apache.empire.exceptions.InternalException

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.