/** Initializes the root of FS. */ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); closeSync = new Object(); strongCache = null; softCache = new SoftReference<Cache>(null); aliveCount = 0; try { setJarFile(root); } catch (PropertyVetoException ex) { throw new IOException(ex.getMessage()); } catch (IOException iex) { ExternalUtil.log(iex.getLocalizedMessage()); } }
/** Initializes the root of FS. */ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { //ois.defaultReadObject (); ObjectInputStream.GetField fields = ois.readFields(); URL[] urls = (URL[]) fields.get("urlsToXml", null); // NOI18N if (urls == null) { urls = new URL[1]; urls[0] = (URL) fields.get("uriId", null); // NOI18N if (urls[0] == null) { throw new IOException("missing uriId"); // NOI18N } } try { setXmlUrls(urls); } catch (PropertyVetoException ex) { IOException x = new IOException(ex.getMessage()); ExternalUtil.copyAnnotation(x, ex); throw x; } }
datasource.setDriverClass(dbDriver); } catch (PropertyVetoException e) { throw new SchedulerException("Problem setting driver class name on datasource: " + e.getMessage(), e);
datasource.setDriverClass(dbDriver); } catch (PropertyVetoException e) { throw new SchedulerException("Problem setting driver class name on datasource: " + e.getMessage(), e);
throw new TransactionFailure(e.getMessage(), e);
/** Initializes the root of FS. */ private void readObject (ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject (); closeSync = new Object(); strongCache = null; softCache = new SoftReference(null); aliveCount = 0; try { setJarFile (root); } catch (PropertyVetoException ex) { throw new IOException (ex.getMessage ()); } catch (IOException iex) { ExternalUtil.log (iex.getLocalizedMessage()); } }
/** Initializes the root of FS. */ private void readObject (ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject (); closeSync = new Object(); strongCache = null; softCache = new SoftReference(null); aliveCount = 0; try { setJarFile (root); } catch (PropertyVetoException ex) { throw new IOException (ex.getMessage ()); } catch (IOException iex) { ExternalUtil.log (iex.getLocalizedMessage()); } }
@VisibleForTesting void failIfVetoed(@Nonnull JInternalFrame internalFrame, @Nonnull JInternalFrameAction action, @Nonnull UnexpectedException unexpected) { PropertyVetoException vetoError = vetoFrom(unexpected); if (vetoError == null) { return; } String msg = String.format("%s of %s was vetoed: <%s>", action.name, format(internalFrame), vetoError.getMessage()); throw actionFailure(msg); }
/** * Sets the key for the series and sends a {@code VetoableChangeEvent} * (with the property name "Key") to all registered listeners. For * backwards compatibility, this method also fires a regular * {@code PropertyChangeEvent}. If the key change is vetoed this * method will throw an IllegalArgumentException. * * @param key the key ({@code null} not permitted). * * @see #getKey() */ public void setKey(Comparable key) { Args.nullNotPermitted(key, "key"); Comparable old = this.key; try { // if this series belongs to a dataset, the dataset might veto the // change if it results in two series within the dataset having the // same key this.vetoableChangeSupport.fireVetoableChange("Key", old, key); this.key = key; // prior to 1.0.14, we just fired a PropertyChange - so we need to // keep doing this this.propertyChangeSupport.firePropertyChange("Key", old, key); } catch (PropertyVetoException e) { throw new IllegalArgumentException(e.getMessage()); } }
} catch (java.beans.PropertyVetoException e) { System.err.println("BatchIngestGUI" + " frame select vetoed " + e.getMessage());
throw new TransactionFailure(e.getMessage(), e);
throw new TransactionFailure(e.getMessage(), e);
throw new TransactionFailure(e.getMessage(), e);
throw new TransactionFailure(e.getMessage(), e);
((MyDoggyDesktopContentUI) getContentUI(content)).getInternalFrame().setMaximum(true); } catch (PropertyVetoException e) { throw new RuntimeException(e.getMessage(), e); ((MyDoggyDesktopContentUI) getContentUI(content)).getInternalFrame().setMaximum(false); } catch (PropertyVetoException e) { throw new RuntimeException(e.getMessage(), e);
/** Initializes the root of FS. */ private void readObject (ObjectInputStream ois) throws IOException, ClassNotFoundException { //ois.defaultReadObject (); ObjectInputStream.GetField fields = ois.readFields(); URL[] urls = (URL[]) fields.get ("urlsToXml",null); // NOI18N if (urls == null) { urls = new URL[1]; urls[0] = (URL) fields.get ("uriId",null); // NOI18N } try { if (urlsToXml.length != 1) setXmlUrls(urlsToXml); else setXmlUrl(urlsToXml[0]); } catch (PropertyVetoException ex) { IOException x = new IOException (ex.getMessage()); ExternalUtil.copyAnnotation (x,ex); throw x; } }
/** Initializes the root of FS. */ private void readObject (ObjectInputStream ois) throws IOException, ClassNotFoundException { //ois.defaultReadObject (); ObjectInputStream.GetField fields = ois.readFields(); URL[] urls = (URL[]) fields.get ("urlsToXml",null); // NOI18N if (urls == null) { urls = new URL[1]; urls[0] = (URL) fields.get ("uriId",null); // NOI18N } try { if (urlsToXml.length != 1) setXmlUrls(urlsToXml); else setXmlUrl(urlsToXml[0]); } catch (PropertyVetoException ex) { IOException x = new IOException (ex.getMessage()); ExternalUtil.copyAnnotation (x,ex); throw x; } }
rep.setActionExitCode(ActionReport.ExitCode.FAILURE); } catch (PropertyVetoException e) { rep.setMessage(e.getMessage()); rep.setActionExitCode(ActionReport.ExitCode.FAILURE);
throw new RuntimeException(e.getMessage(), e);
iframe.setMaximum(true); } catch (PropertyVetoException pve) { logger.warn("Unable to maximize internal frame: "+pve.getMessage());