Package com.veeva.vault.sdk.api.webapi
Interface WebApiError.Builder
- Enclosing interface:
- WebApiError
public static interface WebApiError.Builder
Creates an instance of
WebApiError.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Retrieves a completedWebApiError.withMessage(String message) Sets the error message.Sets the type of error.
-
Method Details
-
withType
Sets the type of error.- Parameters:
type- the type of error to include in the response- Returns:
- this
WebApiError.Builder
-
withMessage
Sets the error message.- Parameters:
message- the message of the error to include in the response- Returns:
- this
WebApiError.Builder
-
build
WebApiError build()Retrieves a completedWebApiError.- Returns:
- this completed
WebApiError
-