Class VitamErrorUtils

java.lang.Object
fr.gouv.vitam.functional.administration.common.VitamErrorUtils

public class VitamErrorUtils extends Object
Class utils: generate VitamError
  • 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 error
      description - the description message error
      collection - the name of the collection
      state - 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 error
      description - the description message error
      collection - the name of the collection
      state - the status code
      clasz - 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)