Class LangfuseClientApiException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccessDeniedError, Error, MethodNotAllowedError, NotFoundError, ServiceUnavailableError, UnauthorizedError

public class LangfuseClientApiException extends LangfuseClientException
This exception type will be thrown for any non-2XX API responses.
See Also:
  • Constructor Details

    • LangfuseClientApiException

      public LangfuseClientApiException(String message, int statusCode, Object body)
    • LangfuseClientApiException

      public LangfuseClientApiException(String message, int statusCode, Object body, okhttp3.Response rawResponse)
  • Method Details

    • statusCode

      public int statusCode()
      Returns:
      the statusCode
    • body

      public Object body()
      Returns:
      the body
    • headers

      public Map<String,List<String>> headers()
      Returns:
      the headers
    • toString

      public String toString()
      Overrides:
      toString in class Throwable