httpException static method

PixException httpException(
  1. Object exception
)

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(),
  );
}