Examples of initCause()


Examples of org.opengis.parameter.InvalidParameterValueException.initCause()

            key= AUTHORITY_KEY; this.authority = (Citation)            (value = authority);
            key=   REMARKS_KEY; this.remarks   = (InternationalString) (value = remarks);
        } catch (ClassCastException exception) {
            final InvalidParameterValueException e = new InvalidParameterValueException(
                    Errors.format(Errors.Keys.IllegalArgumentValue_2, key, value), key, value);
            e.initCause(exception);
            throw e;
        }
        if (code == null) {
            throw new IllegalArgumentException(Errors.format(Errors.Keys.MissingValueForProperty_1, CODE_KEY));
        }
View Full Code Here

Examples of org.opengis.referencing.NoSuchAuthorityCodeException.initCause()

            cause = e;
        }
        final NoSuchAuthorityCodeException e = new NoSuchAuthorityCodeException(
                Errors.format(Errors.Keys.NoSuchAuthorityCode_3, authority, CoordinateReferenceSystem.class, value),
                authority, value, code);
        e.initCause(cause);
        throw e;
    }

    /**
     * Returns the valid geographic area for the given coordinate reference system, or {@code null} if unknown.
View Full Code Here

Examples of org.opengis.referencing.NoSuchIdentifierException.initCause()

                 * CoordinateOperationSet uses this information in order to determine if it
                 * should try the next coordinate operation or propagate the exception.
                 */
                final NoSuchIdentifierException e = new NoSuchIdentifierException(
                        Errors.format(ErrorKeys.CANT_SET_PARAMETER_VALUE_$1, name), name);
                e.initCause(exception);
                throw e;
            }
            try {
                if (reference != null) {
                    param.setValue(reference);
View Full Code Here

Examples of org.opengis.referencing.operation.NoninvertibleTransformException.initCause()

            m.invert();
            return m;
        } catch (SingularMatrixException exception) {
            NoninvertibleTransformException e = new NoninvertibleTransformException(
                        Errors.format(ErrorKeys.NONINVERTIBLE_TRANSFORM));
            e.initCause(exception);
            throw e;
        }
    }

    /**
 
View Full Code Here

Examples of org.opengis.referencing.operation.TransformException.initCause()

                return;
            }
        } catch (NoninvertibleTransformException exception) {
            final TransformException e;
            e = new TransformException(Errors.format(ErrorKeys.NONINVERTIBLE_TRANSFORM));
            e.initCause(exception);
            throw e;
        }
        throw new TransformException(Errors.format(ErrorKeys.NO_CONVERGENCE));
    }
View Full Code Here

Examples of org.openrdf.rio.RDFParseException.initCause()

            add(wrapper, baseURI, format, contexts);
          }
          catch (RDFParseException e) {
            String msg = e.getMessage() + " in " + entry.getName();
            RDFParseException pe = new RDFParseException(msg, e.getLineNumber(), e.getColumnNumber());
            pe.initCause(e);
            throw pe;
          }
          finally {
            zipIn.closeEntry();
          }
View Full Code Here

Examples of org.openrdf.store.StoreException.initCause()

                  cardinality.getAndAdd(size);
                }
              }
              catch (RuntimeException e) {
                if (source != null) {
                  source.initCause(e);
                  exception = source;
                }
                else {
                  exception = e;
                }
View Full Code Here

Examples of org.osgi.service.cm.ConfigurationException.initCause()

        try {
            deleted(pid);
            configurations.put(pid, new ClusteredConfiguration(toProperties(properties)));
        } catch (Exception e) {
            ConfigurationException configurationException = new ConfigurationException(null, "Unable to parse ActiveMQ configuration: " + e.getMessage());
            configurationException.initCause(e);
            throw configurationException;
        }
    }

    @Override
View Full Code Here

Examples of org.quartz.JobExecutionException.initCause()

                listener.onSchedule() ;
            }
            catch (final SchedulingException se)
            {
                final JobExecutionException jobException = new JobExecutionException("Scheduling exception on " + jobExecutionContext.getTrigger().getName()) ;
                jobException.initCause(se) ;
                throw jobException ;
            }
            catch (final Throwable th)
            {
                final JobExecutionException jobException = new JobExecutionException("Unexpected exception on " + jobExecutionContext.getTrigger().getName()) ;
View Full Code Here

Examples of org.springframework.beans.NotReadablePropertyException.initCause()

  protected NotReadablePropertyException createNotReadablePropertyException(String propertyName, Exception e) {
    if (JdkVersion.isAtLeastJava14()) {
      NotReadablePropertyException beanException = new NotReadablePropertyException(getTargetClass(),
          propertyName);
      beanException.initCause(e);
      return beanException;
    }
    else {
      ByteArrayOutputStream stackTrace = new ByteArrayOutputStream();
      PrintWriter stackTraceWriter = new PrintWriter(stackTrace);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.