1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| 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;
| }
| }
|
|