Class AS4Error

java.lang.Object
com.helger.phase4.error.AS4Error

public class AS4Error extends Object
Special AS4 error summarizing the EbmsError and the HTTP status code.
Since:
4.2.0
Author:
Philip Helger
  • Constructor Details

    • AS4Error

      protected AS4Error(@NonNull Ebms3Error aEbmsError, int nHttpStatusCode)
  • Method Details

    • getEbmsError

      public final @NonNull Ebms3Error getEbmsError()
      Returns:
      The contained EBMS error. Never null.
    • getHttpStatusCode

      @CheckForSigned public final int getHttpStatusCode()
      Returns:
      The HTTP Status Code to be returned. All values ≤ 0 are interpreted as "no change". The default value is generally 200 (HTTP OK).
    • hasHttpStatusCode

      public final boolean hasHttpStatusCode()
      Returns:
      true of the contained status code seems to be valid, false if not.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static @NonNull AS4Error.AS4ErrorBuilder builder()