All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.descope.exception.DescopeException Maven / Gradle / Ivy

There is a newer version: 1.0.30
Show newest version
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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy