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

io.scalecube.security.tokens.jwt.JwtTokenException Maven / Gradle / Ivy

The newest version!
package io.scalecube.security.tokens.jwt;

import java.util.StringJoiner;

/**
 * Generic exception type for JWT token resolution errors. Used as part {@link JwtTokenResolver}
 * mechanism, and responsible to abstract token resolution problems.
 */
public class JwtTokenException extends RuntimeException {

  public JwtTokenException(String message) {
    super(message);
  }

  public JwtTokenException(String message, Throwable cause) {
    super(message, cause);
  }

  public JwtTokenException(Throwable cause) {
    super(cause);
  }

  @Override
  public String toString() {
    return new StringJoiner(", ", getClass().getSimpleName() + "[", "]")
        .add("errorMessage='" + getMessage() + "'")
        .toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy