Class RequestResult.NonSuccess

  • All Implemented Interfaces:
    org.signal.libsignal.net.RequestResult

    
    public final class RequestResult.NonSuccess<E extends BadRequestError>
     implements RequestResult<Nothing, E>
                        

    We successfully made the request, but the server returned an error.

    This represents expected error conditions defined by the API, such as "invalid authorization" or "outdated recipient information". These errors are part of the API contract and should be handled explicitly by callers.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final E error
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final E getError() The specific error that occurred
      • Methods inherited from class org.signal.libsignal.net.RequestResult

        map
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RequestResult.NonSuccess

        RequestResult.NonSuccess(E error)
    • Method Detail

      • getError

         final E getError()

        The specific error that occurred