Class ErrorHandlingUtilsKt
-
- All Implemented Interfaces:
public final class ErrorHandlingUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> T,si.inova.kotlinova.retrofit.callfactory.ErrorHandler)>bodyOrThrow(<Error class: unknown class><T> $self, ErrorHandler errorHandler)Returns either a response, if this response was successful or throws a CauseException that matches error body (parsed via provided ErrorHandler). final static <Error class: unknown class>)>transformRetrofitException(Throwable $self, <Error class: unknown class> url)Transform exception generated by retrofit into semantic CauseException. -
-
Method Detail
-
bodyOrThrow
final static <T extends Any> T ,si.inova.kotlinova.retrofit.callfactory.ErrorHandler)>bodyOrThrow(<Error class: unknown class><T> $self, ErrorHandler errorHandler)
Returns either a response, if this response was successful or throws a CauseException that matches error body (parsed via provided ErrorHandler).
-
transformRetrofitException
final static <Error class: unknown class> )>transformRetrofitException(Throwable $self, <Error class: unknown class> url)
Transform exception generated by retrofit into semantic CauseException.
-
-
-
-