de.zib.scalaris
Class UnknownException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.zib.scalaris.UnknownException
All Implemented Interfaces:
Serializable

public class UnknownException
extends RuntimeException

Generic exception that is thrown during operations on a scalaris ring, e.g. if an unknown result has been returned.

Since:
2.0
Version:
2.2
Author:
Nico Kruber, kruber@zib.de
See Also:
Serialized Form

Constructor Summary
UnknownException()
          Creates the exception with no message.
UnknownException(OtpErlangObject erlValue)
          Creates an exception including the message of the given erlang object.
UnknownException(String msg)
          Creates the exception with the given message.
UnknownException(Throwable e)
          Creates an exception taking the message of the given throwable.
UnknownException(Throwable e, OtpErlangObject erlValue)
          Creates an exception taking the message of the given throwable.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownException

public UnknownException()
Creates the exception with no message.


UnknownException

public UnknownException(String msg)
Creates the exception with the given message.

Parameters:
msg - message of the exception

UnknownException

public UnknownException(Throwable e)
Creates an exception taking the message of the given throwable.

Parameters:
e - the exception to "re-throw"

UnknownException

public UnknownException(OtpErlangObject erlValue)
Creates an exception including the message of the given erlang object.

Parameters:
erlValue - the erlang message to include
Since:
2.2

UnknownException

public UnknownException(Throwable e,
                        OtpErlangObject erlValue)
Creates an exception taking the message of the given throwable.

Parameters:
e - the exception to "re-throw"
erlValue - the string representation of this erlang value is included into the message
Since:
2.2