com.descope.exception.ClientFunctionalException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java library used to integrate with Descope.
The newest version!
package com.descope.exception;
import static com.descope.exception.ErrorCode.INVALID_TOKEN;
public class ClientFunctionalException extends DescopeException {
protected ClientFunctionalException(String message, String code) {
super(message);
setCode(code);
}
protected ClientFunctionalException(String message, String code, Throwable cause) {
super(message, cause);
setCode(code);
}
public static ClientFunctionalException invalidToken() {
String message = "Invalid Token";
return new ClientFunctionalException(message, INVALID_TOKEN);
}
public static ClientFunctionalException invalidToken(Throwable cause) {
String message = "Invalid Token";
return new ClientFunctionalException(message, INVALID_TOKEN);
}
}