public static final class ServiceError.Builder
extends java.lang.Object
ServiceError
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ServiceError . |
Modifier and Type | Method and Description |
---|---|
ServiceError |
build() |
ServiceError.Builder |
setDefaultMessage(java.lang.String defaultMessage)
Error message in English.
|
ServiceError.Builder |
setLocalizedMessage(java.lang.String localizedMessage)
The localized message.
|
ServiceError.Builder |
setOriginalService(java.lang.String originalService)
The original service name of the error.
|
ServiceError.Builder |
setOriginalServiceErrorCode(java.lang.String originalServiceErrorCode)
The original error code of the service.
|
public Builder()
ServiceError
.public ServiceError.Builder setDefaultMessage(java.lang.String defaultMessage)
defaultMessage
- New value for the property.public ServiceError.Builder setOriginalService(java.lang.String originalService)
originalService
- New value for the property.public ServiceError.Builder setLocalizedMessage(java.lang.String localizedMessage)
localizedMessage
- New value for the property.public ServiceError.Builder setOriginalServiceErrorCode(java.lang.String originalServiceErrorCode)
originalServiceErrorCode
- New value for the property.public ServiceError build()