Class ExceptionTranslator
Object
ExceptionTranslator
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnkaSecureSdkException
Wrapscause
into anAnkaSecureSdkException
enriched with HTTP status, raw response body (when available) and an immutable context map.
-
Method Details
-
translate
public static AnkaSecureSdkException translate(String humanMessage, Exception cause, Map<String, String> context) Wrapscause
into anAnkaSecureSdkException
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 (nevernull
)context
- optional contextual values (may benull
; will be defensively copied)- Returns:
- never returns - the method always throws
- Throws:
AnkaSecureSdkException
- always
-