public class RestResponseErrorBody extends Object implements Iterable<RestResponseErrorBody.RestResponseError>
application/vnd.error.| Modifier and Type | Class and Description |
|---|---|
static class |
RestResponseErrorBody.RestResponseError
A single error.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RestResponseErrorBody()
Protected default constructor to allow JAXB marshalling.
|
|
RestResponseErrorBody(LockssRestServiceException exception)
Constructor.
|
|
RestResponseErrorBody(RestResponseErrorBody.RestResponseError error)
Constructor.
|
|
RestResponseErrorBody(String message,
String parsedRequest)
Constructor.
|
|
RestResponseErrorBody(String message,
String parsedRequest,
LocalDateTime utcTimestamp)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RestResponseErrorBody |
add(RestResponseErrorBody.RestResponseError error)
Adds an error.
|
boolean |
equals(Object obj) |
int |
hashCode() |
Iterator<RestResponseErrorBody.RestResponseError> |
iterator() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected RestResponseErrorBody()
public RestResponseErrorBody(String message, String parsedRequest)
message - A String with the detail message.parsedRequest - A String with a copy of the parsed HTTP request contents.public RestResponseErrorBody(String message, String parsedRequest, LocalDateTime utcTimestamp)
message - A String with the detail message.parsedRequest - A String with a copy of the parsed HTTP request contents.utcTimestamp - A LocalDateTime with the exception date and time.public RestResponseErrorBody(RestResponseErrorBody.RestResponseError error)
error - An Error to be included in the body.public RestResponseErrorBody(LockssRestServiceException exception)
exception - A LockssRestServiceException with the data to be included in the
body.public RestResponseErrorBody add(RestResponseErrorBody.RestResponseError error)
error - A RestResponseError with the error to be added.public Iterator<RestResponseErrorBody.RestResponseError> iterator()
iterator in interface Iterable<RestResponseErrorBody.RestResponseError>Copyright © 2000–2020 LOCKSS Program. All rights reserved.