Class KCException

java.lang.Object
java.lang.Throwable
java.lang.Exception
eu.europeana.api.commons.error.EuropeanaApiException
eu.europeana.apikey.exception.KCException
All Implemented Interfaces:
Serializable

public class KCException extends eu.europeana.api.commons.error.EuropeanaApiException
Exception thrown when there are problems communicating with Keycloak
See Also:
  • Constructor Details

    • KCException

      public KCException(String msg, int status)
      Instantiates a new Kc exception.
      Parameters:
      msg - the msg
      status - the status
    • KCException

      public KCException(String msg, int status, Throwable t)
      Instantiates a new Kc exception.
      Parameters:
      msg - the msg
      status - the status
      t - the t
  • Method Details

    • doLogStacktrace

      public boolean doLogStacktrace()
      Overrides:
      doLogStacktrace in class eu.europeana.api.commons.error.EuropeanaApiException
    • getResponseStatus

      public org.springframework.http.HttpStatus getResponseStatus()
      Overrides:
      getResponseStatus in class eu.europeana.api.commons.error.EuropeanaApiException
    • getStatus

      public int getStatus()
      Gets status.
      Returns:
      the status