Package com.atlan.exception
Class ExceptionMessageDefinition.ExceptionMessageDefinitionBuilder
java.lang.Object
com.atlan.exception.ExceptionMessageDefinition.ExceptionMessageDefinitionBuilder
- Enclosing class:
- ExceptionMessageDefinition
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Unique, language-independent code for the error.errorMessage
(String errorMessage) Message for the error, with optional formatting placeholders.httpErrorCode
(int httpErrorCode) HTTP response code for the error.toString()
userAction
(String userAction) Recommended action for the user to take upon observing this error.
-
Method Details
-
httpErrorCode
public ExceptionMessageDefinition.ExceptionMessageDefinitionBuilder httpErrorCode(int httpErrorCode) HTTP response code for the error.- Returns:
this
.
-
errorId
Unique, language-independent code for the error.- Returns:
this
.
-
errorMessage
public ExceptionMessageDefinition.ExceptionMessageDefinitionBuilder errorMessage(String errorMessage) Message for the error, with optional formatting placeholders.- Returns:
this
.
-
userAction
Recommended action for the user to take upon observing this error.- Returns:
this
.
-
build
-
toString
-