package com.walker.web; import com.walker.infrastructure.ApplicationException; /** * Token 解析异常定义: *

* 1.密钥错误 * 2.过期 *

*/ public class TokenException extends ApplicationException { private String title; private boolean expired = false; public TokenException(String msg){ super(msg); this.title = msg; } public TokenException(String msg, Throwable cause, boolean expired){ super(msg, cause); this.expired = expired; } public TokenException(String msg, Throwable cause){ super(msg, cause); this.title = msg; } public String getTitle(){ return this.title; } public boolean isExpired() { return expired; } }