Class VitamErrorUtils
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.common.VitamErrorUtils
-
public class VitamErrorUtils extends java.lang.Object
Class utils: generate VitamError
-
-
Constructor Summary
Constructors Constructor Description VitamErrorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VitamError<com.fasterxml.jackson.databind.JsonNode>
getVitamError(java.lang.String vitamCode, java.lang.String description, java.lang.String collection, StatusCode state)
static <T> VitamError<T>
getVitamError(java.lang.String vitamCode, java.lang.String description, java.lang.String collection, StatusCode state, java.lang.Class<T> clasz)
static VitamError<com.fasterxml.jackson.databind.JsonNode>
getVitamErrorWithMessage(java.lang.String vitamCode, java.lang.String description, java.lang.String collection, StatusCode state, java.lang.String message)
static <T> VitamError<T>
getVitamErrorWithMessage(java.lang.String vitamCode, java.lang.String description, java.lang.String collection, StatusCode state, java.lang.String message, java.lang.Class<T> clasz)
-
-
-
Method Detail
-
getVitamError
public static VitamError<com.fasterxml.jackson.databind.JsonNode> getVitamError(java.lang.String vitamCode, java.lang.String description, java.lang.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(java.lang.String vitamCode, java.lang.String description, java.lang.String collection, StatusCode state, java.lang.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(java.lang.String vitamCode, java.lang.String description, java.lang.String collection, StatusCode state, java.lang.String message)
-
getVitamErrorWithMessage
public static <T> VitamError<T> getVitamErrorWithMessage(java.lang.String vitamCode, java.lang.String description, java.lang.String collection, StatusCode state, java.lang.String message, java.lang.Class<T> clasz)
-
-