Package java.util

Examples of java.util.NoSuchElementException.initCause()


                    throw e;
                } catch (InstantiationException ex) {
                    final NoSuchElementException e = new NoSuchElementException(new StringBuffer(
                            "Can't create the encoder ").append(encoder.getClass().getName())
                            .toString());
                    e.initCause(ex);
                    throw e;
                }
            }
        }
View Full Code Here


            final Point point = RasterAsPointFeatureCollection.geometryFactory.createPoint( coord );
            try {
        fb.add(JTS.transform(point, fc.mt2D));
      } catch (MismatchedDimensionException e) {
        final NoSuchElementException nse= new NoSuchElementException();
        nse.initCause(e);
        throw nse;
      } catch (TransformException e) {
        final NoSuchElementException nse= new NoSuchElementException();
        nse.initCause(e);
        throw nse;
View Full Code Here

        final NoSuchElementException nse= new NoSuchElementException();
        nse.initCause(e);
        throw nse;
      } catch (TransformException e) {
        final NoSuchElementException nse= new NoSuchElementException();
        nse.initCause(e);
        throw nse;
      }
           
      // VALUES
            // loop on bands
View Full Code Here

                                (ChildNodeEntry) super.next();
                        try {
                            return ism.getItemState(cne.getId());
                        } catch (ItemStateException e) {
                            NoSuchElementException nsee = new NoSuchElementException("No node with id " + cne.getId() + " found in child axis");
                            nsee.initCause(e);
                            throw nsee;
                        }
                    }
                };
            } else if (axis == ANCESTOR) {
View Full Code Here

                    }
                    p = null;
                    if (create) {
                        NoSuchElementException nsee = new NoSuchElementException(
                                "Unable to activate object");
                        nsee.initCause(e);
                        throw nsee;
                    }
                }
                if (p != null && (getTestOnBorrow() || create && getTestOnCreate())) {
                    boolean validate = false;
View Full Code Here

                        }
                        p = null;
                        if (create) {
                            NoSuchElementException nsee = new NoSuchElementException(
                                    "Unable to validate object");
                            nsee.initCause(validationThrowable);
                            throw nsee;
                        }
                    }
                }
            }
View Full Code Here

                        }
                        p = null;
                        if (create) {
                            NoSuchElementException nsee = new NoSuchElementException(
                                    "Unable to activate object");
                            nsee.initCause(e);
                            throw nsee;
                        }
                    }
                    if (p != null && (getTestOnBorrow() || create && getTestOnCreate())) {
                        boolean validate = false;
View Full Code Here

                            }
                            p = null;
                            if (create) {
                                NoSuchElementException nsee = new NoSuchElementException(
                                        "Unable to validate object");
                                nsee.initCause(validationThrowable);
                                throw nsee;
                            }
                        }
                    }
                }
View Full Code Here

                }
                catch ( NamingException ne )
                {
                    NoSuchElementException nsee =
                        new NoSuchElementException( I18n.err( I18n.ERR_468 ) );
                    nsee.initCause( ne );
                    throw nsee;
                }
            }
        };
    }
View Full Code Here

                    correlationMap.remove(tr.key);
                }
                return tr.value;
            } catch (NullPointerException cause) {
                NoSuchElementException ex = new NoSuchElementException("The underlying collection is empty.");
                ex.initCause(cause);
                throw ex;
            }
        } finally {
            rwLock.writeLock().unlock();
        }
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.