Package com.helger.phase4.error
Interface IEbmsError
- All Known Implementing Classes:
EbmsError,EEbmsError
public interface IEbmsError
Base interface for a single EBMS error
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault Ebms3ErrorBuildererrorBuilder(Locale aContentLocale) Create a newEbms3ErrorBuilderwith the information of this element.default Ebms3ErrorgetAsEbms3Error(Locale aContentLocale, String sRefToMessageInError) Deprecated, for removal: This API element is subject to removal in a future version.default Ebms3ErrorgetAsEbms3Error(Locale aContentLocale, String sRefToMessageInError, String sErrorDetails) Deprecated, for removal: This API element is subject to removal in a future version.default Ebms3ErrorgetAsEbms3Error(Locale aContentLocale, String sRefToMessageInError, String sOrigin, Ebms3Description aEbmsDescription) Deprecated, for removal: This API element is subject to removal in a future version.default Ebms3ErrorgetAsEbms3Error(Locale aContentLocale, String sRefToMessageInError, String sOrigin, String sDetails) Deprecated, for removal: This API element is subject to removal in a future version.default com.helger.commons.error.IErrorgetAsError(Locale aContentLocale) Deprecated, for removal: This API element is subject to removal in a future version.Gets the value of the category property.com.helger.commons.text.display.IHasDisplayTextGets the value of the description property.Gets the value of the errorCode property.default com.helger.commons.text.display.IHasDisplayTextDeprecated, for removal: This API element is subject to removal in a future version.Gets the value of the severity property.Gets the value of the shortDescription property.
-
Method Details
-
getErrorCode
Gets the value of the errorCode property.- Returns:
- possible object is
String
-
getSeverity
Gets the value of the severity property.- Returns:
- possible object is
String
-
getShortDescription
Gets the value of the shortDescription property.- Returns:
- Short description. Never
null.
-
getDescription
Gets the value of the description property.- Returns:
- The multilingual description.
- Since:
- 2.6.0
-
getErrorDetail
@Nonnull @Deprecated(forRemoval=true, since="2.6.0") default com.helger.commons.text.display.IHasDisplayText getErrorDetail()Deprecated, for removal: This API element is subject to removal in a future version.UsegetDescription()insteadGets the value of the errorDetail property.- Returns:
- The multilingual description.
-
getCategory
Gets the value of the category property.- Returns:
- possible object is
EEbmsErrorCategory
-
errorBuilder
Create a newEbms3ErrorBuilderwith the information of this element. Sets description, category, errorCode, severity and shortDescription.- Parameters:
aContentLocale- Content locale to use. May not benull.- Returns:
- Never
null. - Since:
- 2.6.0
-
getAsError
@Nonnull @Deprecated(forRemoval=true, since="2.6.0") @UnsupportedOperation default com.helger.commons.error.IError getAsError(@Nonnull Locale aContentLocale) Deprecated, for removal: This API element is subject to removal in a future version.Convert the EBMS Error into anIError.- Parameters:
aContentLocale- The locale used to resolve the error text, in case the text is multilingual. The locale may be ignored.- Returns:
- The created
IError.
-
getAsEbms3Error
@Nonnull @Deprecated(forRemoval=true, since="2.6.0") default Ebms3Error getAsEbms3Error(@Nonnull Locale aContentLocale, @Nullable String sRefToMessageInError) Deprecated, for removal: This API element is subject to removal in a future version. -
getAsEbms3Error
@Nonnull @Deprecated(forRemoval=true, since="2.6.0") default Ebms3Error getAsEbms3Error(@Nonnull Locale aContentLocale, @Nullable String sRefToMessageInError, @Nullable String sErrorDetails) Deprecated, for removal: This API element is subject to removal in a future version. -
getAsEbms3Error
@Nonnull @Deprecated(forRemoval=true, since="2.6.0") default Ebms3Error getAsEbms3Error(@Nonnull Locale aContentLocale, @Nullable String sRefToMessageInError, @Nullable String sOrigin, @Nullable String sDetails) Deprecated, for removal: This API element is subject to removal in a future version. -
getAsEbms3Error
@Nonnull @Deprecated(forRemoval=true, since="2.6.0") default Ebms3Error getAsEbms3Error(@Nonnull Locale aContentLocale, @Nullable String sRefToMessageInError, @Nullable String sOrigin, @Nullable Ebms3Description aEbmsDescription) Deprecated, for removal: This API element is subject to removal in a future version.
-
getDescription()instead