Class ErrorResponse<T>

java.lang.Object
com.fredriksonsound.iot_backoffice_auth.web.ErrorResponse<T>
Type Parameters:
T - response body type
All Implemented Interfaces:
Response<T>

public class ErrorResponse<T>
extends java.lang.Object
implements Response<T>
More ergonomic response
  • Constructor Summary

    Constructors 
    Constructor Description
    ErrorResponse​(T body)  
    ErrorResponse​(T body, org.springframework.http.HttpStatus status)  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.http.ResponseEntity<T> collect()  
    static ErrorResponse<com.google.gson.JsonObject> JsonFromMessage​(java.lang.String message)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait