net.spy.memcached.ops
Class OperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by net.spy.memcached.ops.OperationException
All Implemented Interfaces:
Serializable

public final class OperationException
extends IOException

Exceptions thrown when protocol errors occur.

See Also:
Serialized Form

Constructor Summary
OperationException()
          General exception (no message).
OperationException(OperationErrorType eType, String msg)
          Exception with a message.
 
Method Summary
 OperationErrorType getType()
          Get the type of error.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperationException

public OperationException()
General exception (no message).


OperationException

public OperationException(OperationErrorType eType,
                          String msg)
Exception with a message.

Parameters:
eType - the type of error that occurred
msg - the error message
Method Detail

getType

public OperationErrorType getType()
Get the type of error.


toString

public String toString()
Overrides:
toString in class Throwable