Package org.fudgemsg.wire

Examples of org.fudgemsg.wire.FudgeRuntimeIOException


  }

  private RuntimeException wrapException(String message, final JSONException ex) {
    message = "Error " + message + " from JSON stream";
    if (ex.getCause() instanceof IOException) {
      return new FudgeRuntimeIOException(message, (IOException) ex.getCause());
    } else {
      return new FudgeRuntimeException(message, ex);
    }
  }
View Full Code Here


   * @param e the originating exception
   */
  private void wrapException(String message, final JSONException e) {
    message = "Error writing " + message + " to JSON";
    if (e.getCause() instanceof IOException) {
      throw new FudgeRuntimeIOException(message, (IOException) e.getCause());
    } else {
      throw new FudgeRuntimeException(message, e);
    }
  }
View Full Code Here

  public void flush() {
    if (getUnderlying() != null) {
      try {
        getUnderlying().flush();
      } catch (IOException e) {
        throw new FudgeRuntimeIOException(e);
      }
    }
  }
View Full Code Here

    flush();
    if (getUnderlying() != null) {
      try {
        getUnderlying().close();
      } catch (IOException ex) {
        throw new FudgeRuntimeIOException(ex);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.fudgemsg.wire.FudgeRuntimeIOException

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.