public class ErrorDescriptionBuilder extends Object
ErrorDescription.| Modifier and Type | Method and Description |
|---|---|
static ErrorDescription |
withCode(String message,
String code)
creates a
ErrorDescription where the message and the code are set. |
static ErrorDescription |
withMessage(String message)
creates a
ErrorDescription where only the message is set. |
public static ErrorDescription withMessage(String message)
ErrorDescription where only the message is set.message - is used for the descriptionErrorDescriptionpublic static ErrorDescription withCode(String message, String code)
ErrorDescription where the message and the code are set.message - is set to the descriptioncode - is set to the descriptionCopyright © 2018. All rights reserved.