Package com.couchbase.client.core.error
Class ErrorCodeAndMessage
java.lang.Object
com.couchbase.client.core.error.ErrorCodeAndMessage
public class ErrorCodeAndMessage extends Object
A numeric error code and associated human-readable error message.
-
Constructor Summary
Constructors Constructor Description ErrorCodeAndMessage(int code, String message)
-
Method Summary
Modifier and Type Method Description int
code()
Map<String,Object>
context()
Returns an unmodifiable map of any additional information returned by the server.static List<ErrorCodeAndMessage>
from(byte[] content)
static List<ErrorCodeAndMessage>
fromJsonArray(byte[] jsonArray)
String
message()
String
toString()