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 class
Errors.Builder
Builder to help construct the Errors.
-
Field Summary
Fields Modifier and Type Field Description static org.forgerock.api.models.Errors.ErrorEntryComparator
ERROR_ENTRY_COMPARATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Errors.Builder
errors()
Create a new Builder for Errors.ApiError
get(String name)
Gets theApiError
for a given ApiError-name.Map<String,ApiError>
getErrors()
Gets aMap
of error-names toApiError
s.Set<String>
getNames()
Returns allApiError
names.int
hashCode()
-
-
-
Method Detail
-
getErrors
public Map<String,ApiError> getErrors()
Gets aMap
of error-names toApiError
s.- Returns:
Map
of error-names toApiError
s.
-
get
public ApiError get(String name)
Gets theApiError
for a given ApiError-name.- Parameters:
name
- ApiError name- Returns:
ApiError
ornull
if does-not-exist.
-
errors
public static Errors.Builder errors()
Create a new Builder for Errors.- Returns:
- Builder
-
-