Class ErrorResponse<T>

    • Constructor Detail

      • ErrorResponse

        public ErrorResponse​(int responseCode,
                             T wrappedObject)
        Constructs a new error response wrapper object
        Parameters:
        responseCode - The response code to return to the REST client
        wrappedObject - The object to return to the REST client
    • Method Detail

      • getResponseCode

        public int getResponseCode()
        Gets the response code for this error response
        Returns:
        The response code
      • getWrappedObject

        public T getWrappedObject()
        Gets the wrapped object for this error response
        Returns:
        The wrapped object