Package org.forgerock.api.models
Class Errors
- java.lang.Object
-
- org.forgerock.api.models.Errors
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrors.BuilderBuilder to help construct the Errors.
-
Field Summary
Fields Modifier and Type Field Description static org.forgerock.api.models.Errors.ErrorEntryComparatorERROR_ENTRY_COMPARATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static Errors.Buildererrors()Create a new Builder for Errors.ApiErrorget(String name)Gets theApiErrorfor a given ApiError-name.Map<String,ApiError>getErrors()Gets aMapof error-names toApiErrors.Set<String>getNames()Returns allApiErrornames.inthashCode()
-
-
-
Method Detail
-
getErrors
public Map<String,ApiError> getErrors()
Gets aMapof error-names toApiErrors.- Returns:
Mapof error-names toApiErrors.
-
get
public ApiError get(String name)
Gets theApiErrorfor a given ApiError-name.- Parameters:
name- ApiError name- Returns:
ApiErrorornullif does-not-exist.
-
errors
public static Errors.Builder errors()
Create a new Builder for Errors.- Returns:
- Builder
-
-