Class ExceptionTranslator

Object
ExceptionTranslator

public final class ExceptionTranslator extends Object
  • Method Details

    • translate

      public static AnkaSecureSdkException translate(String humanMessage, Exception cause, Map<String,String> context)
      Wraps cause into an AnkaSecureSdkException enriched with HTTP status, raw response body (when available) and an immutable context map.
      Parameters:
      humanMessage - already-resolved user-friendly message (no bundle keys, no placeholders)
      cause - original exception (never null)
      context - optional contextual values (may be null; will be defensively copied)
      Returns:
      never returns - the method always throws
      Throws:
      AnkaSecureSdkException - always