org.fudgemsg
Class FudgeRuntimeException

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

public class FudgeRuntimeException
extends RuntimeException

A Fudge-specific runtime exception to wrap checked exception.

Fudge will never throw a checked exception. All checked exceptions will be wrapped in this exception or a subclass of it.

See Also:
Serialized Form

Constructor Summary
protected FudgeRuntimeException(String message)
          Creates a new exception, to be used by subclasses.
  FudgeRuntimeException(String message, Throwable cause)
          Creates a wrapper for a checked exception.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

FudgeRuntimeException

protected FudgeRuntimeException(String message)
Creates a new exception, to be used by subclasses.

Instances should not be created other than to wrap checked exceptions. A standard Java runtime exception should be used where possible.

Parameters:
message - the description of the error condition, may be null

FudgeRuntimeException

public FudgeRuntimeException(String message,
                             Throwable cause)
Creates a wrapper for a checked exception.

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


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