Package net.sourceforge.stripes.exception

Examples of net.sourceforge.stripes.exception.StripesRuntimeException


            return parent instanceof LayoutComponentTag
                    && ((LayoutComponentTag) parent).isCurrentComponent();
        }
        catch (StripesJspException e) {
            // This exception would have been thrown before this tag ever executed
            throw new StripesRuntimeException("Something has happened that should never happen", e);
        }
    }
View Full Code Here


                    }
                }
            }
        }
        catch (Exception e) {
            throw new StripesRuntimeException
                    ("Problem instantiating default configuration objects.", e);
        }
    }
View Full Code Here

            try {
                Interceptor interceptor = (Interceptor) ((Class) type).newInstance();
                addInterceptor(map, interceptor);
            }
            catch (Exception e) {
                throw new StripesRuntimeException("Could not instantiate configured Interceptor ["
                        + type.getClass().getName() + "].", e);
            }
        }

        return map;
View Full Code Here

                T component = (T) clazz.newInstance();
                component.init(this);
                return component;
            }
            catch (Exception e) {
                throw new StripesRuntimeException("Could not instantiate configured "
                        + componentType.getSimpleName() + " of type [" + clazz.getSimpleName()
                        + "]. Please check "
                        + "the configuration parameters specified in your web.xml.", e);

            }
View Full Code Here

            return wrapper;
        }
        catch (IOException ioe) { throw ioe; }
        catch (FileUploadLimitExceededException fulee) { throw fulee; }
        catch (Exception e) {
            throw new StripesRuntimeException
                    ("Could not construct a MultipartWrapper for the current request.", e);
        }
    }
View Full Code Here

            // Then base64 encode the bytes
            return Base64.encodeBytes(output, BASE64_OPTIONS);
        }
        catch (Exception e) {
            throw new StripesRuntimeException("Could not encrypt value.", e);
        }
    }
View Full Code Here

            Cipher cipher = Cipher.getInstance(key.getAlgorithm());
            cipher.init(mode, key);
            return cipher;
        }
        catch (Exception e) {
            throw new StripesRuntimeException("Could not generate a Cipher.", e);
        }
    }
View Full Code Here

                SecretKeyFactory factory = SecretKeyFactory.getInstance(CryptoUtil.ALGORITHM);
                CryptoUtil.secretKey = factory.generateSecret(new DESedeKeySpec(material));
            }
        }
        catch (Exception e) {
            throw new StripesRuntimeException("Could not generate a secret key.", e);
        }

        return CryptoUtil.secretKey;
    }
View Full Code Here

                return postProcess(newInterfaceInstance(clazz));
            else
                return postProcess(clazz.newInstance());
        }
        catch (InstantiationException e) {
            throw new StripesRuntimeException("Could not instantiate " + clazz, e);
        }
        catch (IllegalAccessException e) {
            throw new StripesRuntimeException("Could not instantiate " + clazz, e);
        }
    }
View Full Code Here

        try {
            Constructor<T> constructor = clazz.getConstructor(constructorArgTypes);
            return postProcess(newInstance(constructor, constructorArgs));
        }
        catch (SecurityException e) {
            throw new StripesRuntimeException("Could not instantiate " + clazz, e);
        }
        catch (NoSuchMethodException e) {
            throw new StripesRuntimeException("Could not instantiate " + clazz, e);
        }
        catch (IllegalArgumentException e) {
            throw new StripesRuntimeException("Could not instantiate " + clazz, e);
        }
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.stripes.exception.StripesRuntimeException

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.