Package net.spy.memcached.ops
Class OperationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- net.spy.memcached.ops.OperationException
-
- All Implemented Interfaces:
java.io.Serializable
public class OperationException extends java.io.IOException
Exceptions thrown when protocol errors occur.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private OperationErrorType
type
-
Constructor Summary
Constructors Constructor Description OperationException()
General exception (no message).OperationException(OperationErrorType eType, java.lang.String msg)
Exception with a message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationErrorType
getType()
Get the type of error.java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
type
private final OperationErrorType type
-
-
Constructor Detail
-
OperationException
public OperationException()
General exception (no message).
-
OperationException
public OperationException(OperationErrorType eType, java.lang.String msg)
Exception with a message.- Parameters:
eType
- the type of error that occurredmsg
- the error message
-
-
Method Detail
-
getType
public OperationErrorType getType()
Get the type of error.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-