operationexception.java
来自「memcached JAVA客户端API,应用广泛,运行比较稳定。」· Java 代码 · 共 50 行
JAVA
50 行
package net.spy.memcached.ops;import java.io.IOException;/** * Exceptions thrown when protocol errors occur. */public final class OperationException extends IOException { private final OperationErrorType type; /** * General exception (no message). */ public OperationException() { super(); type=OperationErrorType.GENERAL; } /** * Exception with a message. * * @param eType the type of error that occurred * @param msg the error message */ public OperationException(OperationErrorType eType, String msg) { super(msg); type=eType; } /** * Get the type of error. */ public OperationErrorType getType() { return type; } @Override public String toString() { String rv=null; if(type == OperationErrorType.GENERAL) { rv="OperationException: " + type; } else { rv="OperationException: " + type + ": " + getMessage(); } return rv; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?