Interface HttpTransporter

    • Method Detail

      • classify

        default int classify​(java.lang.Throwable error)
        Description copied from interface: Transporter
        Classifies the type of exception that has been thrown from a previous request to the transporter. The exception types employed by a transporter are generally unknown to its caller. Where a caller needs to distinguish between certain error cases, it employs this method to detect which error case corresponds to the exception.
        Specified by:
        classify in interface Transporter
        Parameters:
        error - The exception to classify, must not be null.
        Returns:
        The classification of the error, either Transporter.ERROR_NOT_FOUND or Transporter.ERROR_OTHER.