Class ResponseErrorUtils
java.lang.Object
fr.gouv.vitam.functional.administration.utils.ResponseErrorUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VitamError<SchemaResponse>
getErrorEntity
(javax.ws.rs.core.Response.Status status, String message, String context) Construct the error following input
-
Constructor Details
-
ResponseErrorUtils
public ResponseErrorUtils()
-
-
Method Details
-
getErrorEntity
public static VitamError<SchemaResponse> getErrorEntity(javax.ws.rs.core.Response.Status status, String message, String context) Construct the error following input- Parameters:
status
- Http error statusmessage
- The functional error message, if absent the http reason phrase will be used instead- Returns:
-