25 lines
539 B
Java
25 lines
539 B
Java
|
|
package com.senmesh.common.exception;
|
||
|
|
|
||
|
|
import com.senmesh.common.AlitaResult;
|
||
|
|
import com.senmesh.common.dto.CasTokenDTO;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新token
|
||
|
|
* @author sr on 2021-07-05
|
||
|
|
*/
|
||
|
|
public class ChangeTokenException extends WithResultException{
|
||
|
|
|
||
|
|
/** **/
|
||
|
|
private static final long serialVersionUID = -8897274199463229506L;
|
||
|
|
|
||
|
|
|
||
|
|
public ChangeTokenException(CasTokenDTO casTokenDTO) {
|
||
|
|
super(AlitaResult.changeToken(casTokenDTO));
|
||
|
|
}
|
||
|
|
|
||
|
|
public CasTokenDTO getCasTokenDTO(){
|
||
|
|
return (CasTokenDTO) getResult().getErrorData();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|