public class ErrorBody extends Object
Like the Response.readEntity(java.lang.Class<T>)
methods this provides one-time use access to the body.
Once the body has been consumed by one of the methods on this class, additional calls to any of
the methods will lead to an exception.
Modifier and Type | Method and Description |
---|---|
static ErrorBody |
fromResponse(javax.ws.rs.core.Response response)
Creates a new instance of
ErrorBody from the response. |
String |
string()
Gets the error body as a string.
|
Copyright © 2020 Cerner Innovation, Inc.. All rights reserved.