Class ComponentState.ExceptionRecord
- java.lang.Object
-
- com.floragunn.searchguard.modules.state.ComponentState.ExceptionRecord
-
- All Implemented Interfaces:
org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Enclosing class:
- ComponentState
public static class ComponentState.ExceptionRecord extends Object implements org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.xcontent.ToXContentObject
-
-
Constructor Summary
Constructors Constructor Description ExceptionRecord(Throwable exception)ExceptionRecord(Throwable exception, String message)ExceptionRecord(org.elasticsearch.common.io.stream.StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetException()StringgetMessage()InstantgetOccuredAt()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)
-
-
-
Constructor Detail
-
ExceptionRecord
public ExceptionRecord(org.elasticsearch.common.io.stream.StreamInput in) throws IOException- Throws:
IOException
-
ExceptionRecord
public ExceptionRecord(Throwable exception)
-
-
Method Detail
-
getException
public Throwable getException()
-
getMessage
public String getMessage()
-
getOccuredAt
public Instant getOccuredAt()
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
-