Class VitamErrorUtils
java.lang.Object
fr.gouv.vitam.functional.administration.common.VitamErrorUtils
Class utils: generate VitamError
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VitamError<com.fasterxml.jackson.databind.JsonNode>
getVitamError
(String vitamCode, String description, String collection, StatusCode state) static <T> VitamError<T>
getVitamError
(String vitamCode, String description, String collection, StatusCode state, Class<T> clasz) static VitamError<com.fasterxml.jackson.databind.JsonNode>
getVitamErrorWithMessage
(String vitamCode, String description, String collection, StatusCode state, String message) static <T> VitamError<T>
getVitamErrorWithMessage
(String vitamCode, String description, String collection, StatusCode state, String message, Class<T> clasz)
-
Constructor Details
-
VitamErrorUtils
public VitamErrorUtils()
-
-
Method Details
-
getVitamError
public static VitamError<com.fasterxml.jackson.databind.JsonNode> getVitamError(String vitamCode, String description, String collection, StatusCode state) - Parameters:
vitamCode
- the code of vitam errordescription
- the description message errorcollection
- the name of the collectionstate
- the status code- Returns:
- VitamError
-
getVitamError
public static <T> VitamError<T> getVitamError(String vitamCode, String description, String collection, StatusCode state, Class<T> clasz) - Parameters:
vitamCode
- the code of vitam errordescription
- the description message errorcollection
- the name of the collectionstate
- the status codeclasz
- the vitam error sub class- Returns:
- VitamError
-
getVitamErrorWithMessage
public static VitamError<com.fasterxml.jackson.databind.JsonNode> getVitamErrorWithMessage(String vitamCode, String description, String collection, StatusCode state, String message) -
getVitamErrorWithMessage
public static <T> VitamError<T> getVitamErrorWithMessage(String vitamCode, String description, String collection, StatusCode state, String message, Class<T> clasz)
-