Class JsonApiErrors
- java.lang.Object
-
- com.toedter.spring.hateoas.jsonapi.JsonApiErrors
-
public class JsonApiErrors extends java.lang.Object
Class to build JSON:API compliant error messages.
-
-
Constructor Summary
Constructors Constructor Description JsonApiErrors()
JsonApiErrors(JsonApiError jsonApiError)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonApiErrors
create()
java.util.List<JsonApiError>
getErrors()
java.lang.String
toString()
JsonApiErrors
withError(JsonApiError jsonApiError)
-
-
-
Constructor Detail
-
JsonApiErrors
public JsonApiErrors(JsonApiError jsonApiError)
-
JsonApiErrors
public JsonApiErrors()
-
-
Method Detail
-
withError
public JsonApiErrors withError(JsonApiError jsonApiError)
-
create
public static JsonApiErrors create()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getErrors
public java.util.List<JsonApiError> getErrors()
-
-