Package java.io

Examples of java.io.IOException.initCause()


        if (stream == null) {
            try {
                stream = new FileInputStream(name);
            } catch (FileNotFoundException e) {
                IOException exception = new IOException(JDBCPlugin.Util.getString("SocketHelper.keystore_not_found", name)); //$NON-NLS-1$
                exception.initCause(e);
                throw exception;
            }
        }
               
        KeyStore ks = KeyStore.getInstance(type);       
View Full Code Here


        catch (RDFHandlerException e) {
          if (e.getCause() instanceof IOException) {
            throw (IOException)e.getCause();
          }
          IOException ioe = new IOException(e.getMessage());
          ioe.initCause(e);
          throw ioe;
        }
        writer.flush();
      }
    });
View Full Code Here

      if (e.getCause() instanceof IOException) {
        throw (IOException)e.getCause();
      }
      else {
        IOException ioe = new IOException(e.getMessage());
        ioe.initCause(e);
        throw ioe;
      }
    }
    finally {
      writer.close();
View Full Code Here

    catch (java.io.IOException e)
    {
      String tmpMsg = "The accessPoint URL is not an OPeNDAP server URL (no version info) <" + apVersionString + ">";
      log.error( "expandThisType(): " + tmpMsg, e);
      IOException myE = new IOException( tmpMsg + e.getMessage());
      myE.initCause( e);
      throw( myE);
    }
    if ( apVersionResultContent.indexOf( "DODS") == -1 &&
         apVersionResultContent.indexOf( "OPeNDAP") == -1 &&
         apVersionResultContent.indexOf( "DAP") == -1)
View Full Code Here

      endPointRange = new Range( trajectoryNumPoint-1, trajectoryNumPoint-1);
    }
    catch ( InvalidRangeException e )
    {
      IOException ioe = new IOException( "Start or end point range invalid: " + e.getMessage());
      ioe.initCause( e);
      throw( ioe);
    }
    List section0 = new ArrayList(1);
    List section1 = new ArrayList(1);
    section0.add( startPointRange);
View Full Code Here

      endTimeArray = this.timeVar.read( section1);
    }
    catch ( InvalidRangeException e )
    {
      IOException ioe = new IOException( "Invalid range during read of start or end point: " + e.getMessage());
      ioe.initCause( e);
      throw( ioe);
    }

    String startTimeString;
    String endTimeString;
View Full Code Here

      if (e.getCause() instanceof IOException) {
        throw (IOException)e.getCause();
      }
      else {
        IOException ioe = new IOException(e.getMessage());
        ioe.initCause(e);
        throw ioe;
      }
    }
    finally {
      writer.close();
View Full Code Here

        writeLock.release();
      }
    }
    catch (InterruptedException e) {
      IOException ioe = new IOException("Failed to acquire write lock");
      ioe.initCause(e);
      throw ioe;
    }
  }

  /**
 
View Full Code Here

      return statements;
    }
    catch (UnsupportedRDFormatException e) {
      IOException ioe = new IOException("Unsupported file format: " + url.getFile());
      ioe.initCause(e);
      throw ioe;
    }
    catch (RDFParseException e) {
      e.setFilename(url.toString());
      throw e;
View Full Code Here

  is.defaultReadObject();
  try {
      new Parser(string).parse(false);
  } catch (URISyntaxException x) {
      IOException y = new InvalidObjectException("Invalid URI");
      y.initCause(x);
      throw y;
  }
    }

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.