Class ResponseErrorUtils
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.utils.ResponseErrorUtils
-
public class ResponseErrorUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ResponseErrorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VitamError<SchemaResponse>
getErrorEntity(javax.ws.rs.core.Response.Status status, java.lang.String message, java.lang.String context)
Construct the error following input
-
-
-
Method Detail
-
getErrorEntity
public static VitamError<SchemaResponse> getErrorEntity(javax.ws.rs.core.Response.Status status, java.lang.String message, java.lang.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:
-
-