Interface ErrorRepresentationModel
- All Superinterfaces:
RepresentationModel
This class provides a view of the response model information present in a
Response, when there is an error
to be used by RepresentationFunction.applyError(ErrorRepresentationModel, ProblemRepresentationFactory).- Since:
- 5.4.0
-
Method Summary
Modifier and TypeMethodDescriptionAccess the error messages in the response model.Access the first error message in the response model, if any.Access the problem title (seeResponseModel.problemResponseModel(String, String)Access the problem type (seeResponseModel.problemResponseModel(String)Methods inherited from interface se.curity.identityserver.sdk.haapi.RepresentationModel
getAs, getBoolean, getBoolean, getInt, getLong, getOptionalAs, getOptionalBoolean, getOptionalInt, getOptionalLong, getOptionalString, getString, getViewData
-
Method Details
-
getOptionalProblemType
Access the problem type (seeResponseModel.problemResponseModel(String)- Returns:
- the problem type in the response model, if any.
-
getOptionalProblemTitle
Access the problem title (seeResponseModel.problemResponseModel(String, String)- Returns:
- the problem title in the response model, if any.
-
getErrors
Set<ErrorMessage> getErrors()Access the error messages in the response model.- Returns:
- the set of error messages set in the response model.
-
getOptionalFirstErrorString
Access the first error message in the response model, if any.- Returns:
- the first error message, if any.
-