Class ResponseErrorUtils


  • public class ResponseErrorUtils
    extends java.lang.Object
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResponseErrorUtils

        public ResponseErrorUtils()
    • 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 status
        message - The functional error message, if absent the http reason phrase will be used instead
        Returns: