httpException static method
Factory method for creating an instance of SicoobHttpException.
exception
is the underlying exception that caused the HTTP request to fail.
Implementation
static PixException httpException(Object exception) {
return SicoobHttpException(
error: 'network-error',
errorDescription: exception.toString(),
);
}