com.descope.exception.DescopeException 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.
package com.descope.exception;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
public abstract class DescopeException extends RuntimeException {
@Getter
@Setter(AccessLevel.PROTECTED)
private String code = ErrorCode.INTERNAL_SERVER_ERROR;
protected DescopeException(String message) {
super(message);
}
protected DescopeException(String message, Throwable cause) {
super(message, cause);
}
protected DescopeException(Throwable cause) {
super(cause);
}
public boolean isErrorLimitException() {
return ErrorCode.RATE_LIMIT_EXCEEDED.equals(code);
}
}