Class SignedExchangeError


  • @Beta
    public class SignedExchangeError
    extends java.lang.Object
    Information about a signed exchange response.
    • Constructor Summary

      Constructors 
      Constructor Description
      SignedExchangeError​(java.lang.String message, java.util.Optional<java.lang.Integer> signatureIndex, java.util.Optional<SignedExchangeErrorField> errorField)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<SignedExchangeErrorField> getErrorField()
      The field which caused the error.
      java.lang.String getMessage()
      Error message.
      java.util.Optional<java.lang.Integer> getSignatureIndex()
      The index of the signature which caused the error.
      • Methods inherited from class java.lang.Object

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

      • SignedExchangeError

        public SignedExchangeError​(java.lang.String message,
                                   java.util.Optional<java.lang.Integer> signatureIndex,
                                   java.util.Optional<SignedExchangeErrorField> errorField)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Error message.
      • getSignatureIndex

        public java.util.Optional<java.lang.Integer> getSignatureIndex()
        The index of the signature which caused the error.