// Path: src/main/java/org/cleverframe/fastdfs/constant/ErrorCodeConstants.java
// public final class ErrorCodeConstants {
//     public static final byte SUCCESS = 0;
//     public static final byte ERR_NO_ENOENT = 2;
//     public static final byte ERR_NO_EIO = 5;
//     public static final byte ERR_NO_EBUSY = 16;
//     public static final byte ERR_NO_EINVAL = 22;
//     public static final byte ERR_NO_ENOSPC = 28;
//     public static final byte ERR_NO_CONNREFUSED = 61;
//     public static final byte ERR_NO_EALREADY = 114;
// }


import org.cleverframe.fastdfs.constant.ErrorCodeConstants;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
package org.cleverframe.fastdfs.exception;



/**
 * 作者：LiZW <br/>
 * 创建时间：2016/11/20 1:22 <br/>
 */
public class FastDfsServerException extends FastDfsException {
    /**
     * 错误对照表
     */
    private static final Map<Integer, String> CODE_MESSAGE_MAPPING;

    static {
        Map<Integer, String> mapping = new HashMap<Integer, String>();
        mapping.put((int) ErrorCodeConstants.ERR_NO_ENOENT, "找不到节点或文件");
// Path: src/main/java/org/cleverframe/fastdfs/constant/ErrorCodeConstants.java
// public final class ErrorCodeConstants {
//     public static final byte SUCCESS = 0;
//     public static final byte ERR_NO_ENOENT = 2;
//     public static final byte ERR_NO_EIO = 5;
//     public static final byte ERR_NO_EBUSY = 16;
//     public static final byte ERR_NO_EINVAL = 22;
//     public static final byte ERR_NO_ENOSPC = 28;
//     public static final byte ERR_NO_CONNREFUSED = 61;
//     public static final byte ERR_NO_EALREADY = 114;
// }


// Path: src/main/java/org/cleverframe/fastdfs/exception/FastDfsServerException.java
import org.cleverframe.fastdfs.constant.ErrorCodeConstants;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

package org.cleverframe.fastdfs.exception;



/**
 * 作者：LiZW <br/>
 * 创建时间：2016/11/20 1:22 <br/>
 */
public class FastDfsServerException extends FastDfsException {
    /**
     * 错误对照表
     */
    private static final Map<Integer, String> CODE_MESSAGE_MAPPING;

    static {
        Map<Integer, String> mapping = new HashMap<Integer, String>();
        mapping.put((int) ErrorCodeConstants.ERR_NO_ENOENT, "找不到节点或文件");
        mapping.put((int) ErrorCodeConstants.ERR_NO_EIO, "服务端发生io异常");