Package org.forgerock.api.models
Class ApiError.Builder
java.lang.Object
org.forgerock.api.models.ApiError.Builder
- Enclosing class:
- ApiError
Builder for the ApiError.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the ApiError.Set the error code.description
(String description) Set the error description.description
(LocalizableString description) Set the error description.Set the error as a reference to another definition.Set the schema.
-
Method Details
-
code
Set the error code.- Parameters:
code
- The apiError code.- Returns:
- This builder.
-
description
Set the error description.- Parameters:
description
- ApiError description- Returns:
- This builder.
-
description
Set the error description.- Parameters:
description
- ApiError description- Returns:
- This builder.
-
schema
Set the schema.- Parameters:
schema
- ApiError schema- Returns:
- This builder.
-
reference
Set the error as a reference to another definition.- Parameters:
reference
- The reference.- Returns:
- This builder.
-
build
Builds the ApiError.- Returns:
- ApiError instance
-