Class CommunicationViolationException

All Implemented Interfaces:
Serializable

public class CommunicationViolationException extends TnsAIException
Exception thrown when a communication policy is violated.

This exception is thrown when:

  • Response is in a non-allowed language
  • Response exceeds maximum length
  • Response format doesn't match expected format
Author:
TnsAI Team
See Also:
  • Constructor Details

    • CommunicationViolationException

      public CommunicationViolationException(String message, CommunicationViolationException.ViolationType violationType)
      Creates a communication violation exception.
      Parameters:
      message - the error message
      violationType - the type of violation
    • CommunicationViolationException

      public CommunicationViolationException(String message, Throwable cause, CommunicationViolationException.ViolationType violationType)
      Creates a communication violation exception with a cause.
      Parameters:
      message - the error message
      cause - the underlying cause
      violationType - the type of violation
  • Method Details