Class ErrorMapUndecodableEvent
- java.lang.Object
-
- com.couchbase.client.core.cnc.AbstractEvent
-
- com.couchbase.client.core.cnc.events.io.ErrorMapUndecodableEvent
-
- All Implemented Interfaces:
Event
public class ErrorMapUndecodableEvent extends AbstractEvent
If the KV error map could be loaded, but the decoding of the buffer from JSON failed, this event will be raised.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Event
Event.Category, Event.Severity
-
-
Field Summary
-
Fields inherited from interface com.couchbase.client.core.cnc.Event
CATEGORY_PREFIX
-
-
Constructor Summary
Constructors Constructor Description ErrorMapUndecodableEvent(IoContext ctx, String message, String content)Creates a newErrorMapUndecodableEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcontent()Returns the content in string form.Stringdescription()A textual description with more information about the event.Stringmessage()Returns the error message in string form.-
Methods inherited from class com.couchbase.client.core.cnc.AbstractEvent
category, context, created, createdAt, duration, severity, toString
-
-
-
-
Constructor Detail
-
ErrorMapUndecodableEvent
public ErrorMapUndecodableEvent(IoContext ctx, String message, String content)
Creates a newErrorMapUndecodableEvent.- Parameters:
ctx- the io context for better logging.message- the error message of the error.content- the content of the undecodable map.
-
-
Method Detail
-
description
public String description()
Description copied from interface:EventA textual description with more information about the event.- Returns:
- the description, if set.
-
message
public String message()
Returns the error message in string form.- Returns:
- error message.
-
content
public String content()
Returns the content in string form.- Returns:
- undecodable content
-
-