Package com.tnsai.output
Class OutputSerializationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tnsai.exceptions.TnsAIException
com.tnsai.output.OutputSerializationException
- All Implemented Interfaces:
Serializable
Exception thrown when output serialization or deserialization fails.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOutputSerializationException(String message, OutputFormat format) OutputSerializationException(String message, OutputFormat format, Class<?> targetType) OutputSerializationException(String message, Throwable cause, OutputFormat format) OutputSerializationException(String message, Throwable cause, OutputFormat format, Class<?> targetType) -
Method Summary
Modifier and TypeMethodDescriptionReturns the message with the capturedEventContextappended in a compact, operator-readable form:Class<?> Methods inherited from class com.tnsai.exceptions.TnsAIException
getContext, getErrorCode, getMaxRetryAttempts, getSuggestedRetryDelayMs, getThrownAt, isRetryable, wrapMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OutputSerializationException
-
OutputSerializationException
-
OutputSerializationException
-
OutputSerializationException
public OutputSerializationException(String message, Throwable cause, OutputFormat format, Class<?> targetType)
-
-
Method Details
-
getFormat
-
getTargetType
-
getMessage
Description copied from class:TnsAIExceptionReturns the message with the capturedEventContextappended in a compact, operator-readable form:"<original message> [agent=A1, role=R, session=S, tenant=T]"Only the populated low-cardinality fields are included; missing ones are skipped so the suffix stays compact. When no context was captured, the original message is returned unchanged so existing log scrapers see the same prefix.
- Overrides:
getMessagein classTnsAIException
-