public final class ExceptionTelemetry extends BaseTelemetry<ExceptionData>
| Constructor and Description |
|---|
ExceptionTelemetry(java.lang.Throwable exception)
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
additionalSanitize()
Concrete classes should implement this method
|
protected ExceptionData |
getData()
Concrete classes should implement this method which supplies the
data structure that this instance works with, which needs to implement
SendableData |
java.lang.Exception |
getException() |
ExceptionHandledAt |
getExceptionHandledAt()
Gets the value indicated where the exception was handled.
|
protected java.util.List<ExceptionDetails> |
getExceptions() |
java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Double> |
getMetrics()
Gets a map of application-defined exception metrics.
|
SeverityLevel |
getSeverityLevel() |
java.lang.Throwable |
getThrowable() |
void |
setException(java.lang.Throwable throwable) |
void |
setExceptionHandledAt(ExceptionHandledAt value)
Sets the value indicated where the exception was handled.
|
void |
setSeverityLevel(SeverityLevel severityLevel) |
getContext, getProperties, getSequence, getTimestamp, initialize, sanitize, serialize, setSequence, setTimestamppublic ExceptionTelemetry(java.lang.Throwable exception)
exception - The exception to track.public java.lang.Exception getException()
public java.lang.Throwable getThrowable()
public void setException(java.lang.Throwable throwable)
public ExceptionHandledAt getExceptionHandledAt()
public void setExceptionHandledAt(ExceptionHandledAt value)
value - The value indicating the exceptionpublic java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Double> getMetrics()
public void setSeverityLevel(SeverityLevel severityLevel)
public SeverityLevel getSeverityLevel()
protected void additionalSanitize()
BaseTelemetryadditionalSanitize in class BaseTelemetry<ExceptionData>protected ExceptionData getData()
BaseTelemetrySendableDatagetData in class BaseTelemetry<ExceptionData>protected java.util.List<ExceptionDetails> getExceptions()