Class OutputSerializationException

All Implemented Interfaces:
Serializable

public class OutputSerializationException extends TnsAIException
Exception thrown when output serialization or deserialization fails.
See Also:
  • Constructor Details

    • OutputSerializationException

      public OutputSerializationException(String message, OutputFormat format)
    • OutputSerializationException

      public OutputSerializationException(String message, OutputFormat format, Class<?> targetType)
    • OutputSerializationException

      public OutputSerializationException(String message, Throwable cause, OutputFormat format)
    • OutputSerializationException

      public OutputSerializationException(String message, Throwable cause, OutputFormat format, Class<?> targetType)
  • Method Details

    • getFormat

      public OutputFormat getFormat()
    • getTargetType

      public Class<?> getTargetType()
    • getMessage

      public String getMessage()
      Description copied from class: TnsAIException
      Returns the message with the captured EventContext appended 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:
      getMessage in class TnsAIException