Package com.helger.phase4.error
Class AS4Error
java.lang.Object
com.helger.phase4.error.AS4Error
Special AS4 error summarizing the EbmsError and the HTTP status code.
- Since:
- 4.2.0
- Author:
- Philip Helger
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAS4Error(@NonNull Ebms3Error aEbmsError, int nHttpStatusCode) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull AS4Error.AS4ErrorBuilderbuilder()booleanfinal @NonNull Ebms3Errorfinal intinthashCode()final booleantoString()
-
Constructor Details
-
AS4Error
-
-
Method Details
-
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:
trueof the contained status code seems to be valid,falseif not.
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
-