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
getVitamError(java.lang.String vitamCode, java.lang.String description, java.lang.String collection, StatusCode state)
static VitamError
getVitamErrorWithMessage(java.lang.String vitamCode, java.lang.String description, java.lang.String collection, StatusCode state, java.lang.String message)
-
-
-
Method Detail
-
getVitamError
public static VitamError 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
-
getVitamErrorWithMessage
public static VitamError getVitamErrorWithMessage(java.lang.String vitamCode, java.lang.String description, java.lang.String collection, StatusCode state, java.lang.String message)
-
-