Package com.sinch.sdk.core.exceptions
Class ApiExceptionBuilder
java.lang.Object
com.sinch.sdk.core.exceptions.ApiExceptionBuilder
APIException Builder helper to transform dedicated domains error response to Exception
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApiExceptionConsume Unqualified Map of fields received from an API error into a dedicated Exception
-
Method Details
-
build
Consume Unqualified Map of fields received from an API error into a dedicated Exception- Parameters:
message- the detail message.code- CodemappedResponse- Map of fields (usually coming from a JSON representation) to be interpreted- Returns:
- Dedicated ApiException
-