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
Modifier and TypeClassDescriptionstatic class
Deprecated.UseProblem
to form vendor neutral error messages. -
Field Summary
-
Constructor Summary
ConstructorDescriptionDeprecated.Deprecated.Creates a newVndErrors
instance containing a singleVndErrors.VndError
with the given logref, message and optionalLink
s.VndErrors
(VndErrors.VndError error, VndErrors.VndError... errors) Deprecated.Creates a newVndErrors
wrapper for at least oneVndErrors.VndError
. -
Method Summary
Modifier and TypeMethodDescriptionadd
(VndErrors.VndError error) Deprecated.Use {withError(VndError)
}boolean
Deprecated.Deprecated.Returns the underlying elements.Deprecated.Deprecated.getTotal()
Deprecated.Virtual attribute to generate JSON field of total.int
hashCode()
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, wrap
Methods 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, removeLinks
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 newVndErrors
instance containing a singleVndErrors.VndError
with the given logref, message and optionalLink
s. -
VndErrors
Deprecated.Creates a newVndErrors
wrapper 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:
getContent
in 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.VndError
to the wrapper.- Parameters:
error
-
-
iterator
Deprecated.- Specified by:
iterator
in interfaceIterable<VndErrors.VndError>
- Overrides:
iterator
in classCollectionModel<VndErrors.VndError>
-
toString
Deprecated.- Overrides:
toString
in classCollectionModel<VndErrors.VndError>
-
getMessage
Deprecated. -
getLogref
Deprecated. -
equals
Deprecated.- Overrides:
equals
in classCollectionModel<VndErrors.VndError>
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCode
in classCollectionModel<VndErrors.VndError>
-
Problem
to form vendor neutral error messages.