org.fudgemsg
Class FudgeRuntimeIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.fudgemsg.FudgeRuntimeException
                  extended by org.fudgemsg.FudgeRuntimeIOException
All Implemented Interfaces:
Serializable

public class FudgeRuntimeIOException
extends FudgeRuntimeException

A Fudge-specific IO exception to wrap the checked IOException.

Fudge will never throw a checked exception. Wherever possible, IO exceptions will be wrapped in this exception.

See Also:
Serialized Form

Constructor Summary
FudgeRuntimeIOException(IOException cause)
          Creates a wrapper for the checked IOException.
FudgeRuntimeIOException(String message, IOException cause)
          Creates a wrapper for the checked IOException with an overridden message.
 
Method Summary
 IOException getCause()
          Gets the underlying IOException wrapped by this runtime exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FudgeRuntimeIOException

public FudgeRuntimeIOException(IOException cause)
Creates a wrapper for the checked IOException.

Parameters:
cause - the underlying exception, should not be null

FudgeRuntimeIOException

public FudgeRuntimeIOException(String message,
                               IOException cause)
Creates a wrapper for the checked IOException with an overridden message.

Parameters:
message - the description of the error condition, may be null
cause - the underlying exception, should not be null
Method Detail

getCause

public IOException getCause()
Gets the underlying IOException wrapped by this runtime exception.

Overrides:
getCause in class Throwable
Returns:
the IO exception, should not be null


Copyright 2009-Present by OpenGamma Inc. and individual contributors
Released under the Apache License, Version 2.0