Class VndErrors
java.lang.Object
org.springframework.hateoas.RepresentationModel<CollectionModel<T>>
org.springframework.hateoas.CollectionModel<VndErrors.VndError>
org.springframework.hateoas.mediatype.vnderrors.VndErrors
- All Implemented Interfaces:
Iterable<VndErrors.VndError>,ResolvableTypeProvider
Deprecated.
A representation model class to be rendered as specified for the media type
application/vnd.error+json.- Author:
- Oliver Gierke, Greg Turnquist
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.UseProblemto form vendor neutral error messages. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Deprecated.Creates a newVndErrorsinstance containing a singleVndErrors.VndErrorwith the given logref, message and optionalLinks.VndErrors(VndErrors.VndError error, VndErrors.VndError... errors) Deprecated.Creates a newVndErrorswrapper for at least oneVndErrors.VndError. -
Method Summary
Modifier and TypeMethodDescriptionadd(VndErrors.VndError error) Deprecated.Use {withError(VndError)}booleanDeprecated.Deprecated.Returns the underlying elements.Deprecated.Deprecated.getTotal()Deprecated.Virtual attribute to generate JSON field of total.inthashCode()Deprecated.iterator()Deprecated.toString()Deprecated.withError(VndErrors.VndError error) Deprecated.withErrors(List<VndErrors.VndError> errors) Deprecated.Deprecated.Deprecated.withLogref(Integer logref) Deprecated.withMessage(String message) Deprecated.Methods inherited from class org.springframework.hateoas.CollectionModel
empty, empty, empty, empty, empty, empty, getResolvableType, of, of, of, withFallbackType, withFallbackType, withFallbackType, wrapMethods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinksMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
REL_HELP
Deprecated.- See Also:
-
REL_DESCRIBES
Deprecated.- See Also:
-
REL_ABOUT
Deprecated.- See Also:
-
-
Constructor Details
-
VndErrors
public VndErrors()Deprecated. -
VndErrors
Deprecated.Creates a newVndErrorsinstance containing a singleVndErrors.VndErrorwith the given logref, message and optionalLinks. -
VndErrors
Deprecated.Creates a newVndErrorswrapper for at least oneVndErrors.VndError.- Parameters:
errors- must not be null.
-
VndErrors
Deprecated.- Parameters:
errors- must not be null or empty.
-
-
Method Details
-
withMessage
Deprecated. -
withLogref
Deprecated. -
withErrors
Deprecated. -
withError
Deprecated. -
withLink
Deprecated. -
withLinks
Deprecated. -
getContent
Deprecated.Returns the underlying elements.- Overrides:
getContentin classCollectionModel<VndErrors.VndError>- Returns:
- the content will never be null.
-
getTotal
Deprecated.Virtual attribute to generate JSON field of total. Only generated when there are multiple errors. -
add
Deprecated.Use {withError(VndError)}Adds an additionalVndErrors.VndErrorto the wrapper.- Parameters:
error-
-
iterator
Deprecated.- Specified by:
iteratorin interfaceIterable<VndErrors.VndError>- Overrides:
iteratorin classCollectionModel<VndErrors.VndError>
-
toString
Deprecated.- Overrides:
toStringin classCollectionModel<VndErrors.VndError>
-
getMessage
Deprecated. -
getLogref
Deprecated. -
equals
Deprecated.- Overrides:
equalsin classCollectionModel<VndErrors.VndError>
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classCollectionModel<VndErrors.VndError>
-
Problemto form vendor neutral error messages.