package com.walker.tcp; /** * 认证异常定义 * @author Administrator * */ public class AuthenticateException extends RuntimeException { /** * */ private static final long serialVersionUID = -4594314377939538940L; private String name; public AuthenticateException(String msg){ super(msg); } public AuthenticateException(String msg, Throwable cause){ super(msg, cause); } public AuthenticateException(String msg, Throwable cause, String name){ super(msg, cause); this.name = name; } /** * 返回认证对象的唯一名称 * @return */ public String getName(){ return this.name; } }