public class VndErrors extends Object implements Iterable<VndErrors.VndError>
application/vnd.error
.https://github.com/blongden/vnd.error
Modifier and Type | Class and Description |
---|---|
static class |
VndErrors.VndError
A single
VndErrors.VndError . |
Modifier | Constructor and Description |
---|---|
protected |
VndErrors()
Protected default constructor to allow JAXB marshalling.
|
|
VndErrors(List<VndErrors.VndError> errors)
|
|
VndErrors(String logref,
String message,
Link... links)
Creates a new
VndErrors instance containing a single VndErrors.VndError with the given logref, message and
optional Link s. |
|
VndErrors(VndErrors.VndError error,
VndErrors.VndError... errors)
Creates a new
VndErrors wrapper for at least one VndErrors.VndError . |
Modifier and Type | Method and Description |
---|---|
VndErrors |
add(VndErrors.VndError error)
Adds an additional
VndErrors.VndError to the wrapper. |
boolean |
equals(Object obj) |
int |
hashCode() |
Iterator<VndErrors.VndError> |
iterator() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public VndErrors(String logref, String message, Link... links)
VndErrors
instance containing a single VndErrors.VndError
with the given logref, message and
optional Link
s.logref
- must not be null or empty.message
- must not be null or empty.links
- public VndErrors(VndErrors.VndError error, VndErrors.VndError... errors)
VndErrors
wrapper for at least one VndErrors.VndError
.errors
- must not be null.errors
- public VndErrors(List<VndErrors.VndError> errors)
errors
- must not be null or empty.protected VndErrors()
public VndErrors add(VndErrors.VndError error)
VndErrors.VndError
to the wrapper.errors
- public Iterator<VndErrors.VndError> iterator()
iterator
in interface Iterable<VndErrors.VndError>
Copyright © 2012-2015–2015 Pivotal, Inc.. All rights reserved.