Class ExceptionWrappingConverter

  • All Implemented Interfaces:
    org.springframework.ai.converter.FormatProvider , org.springframework.ai.converter.StructuredOutputConverter , org.springframework.core.convert.converter.Converter

    
    public final class ExceptionWrappingConverter<T extends Object>
     implements StructuredOutputConverter<T>
                        

    Wrap in our exception handling to capture return string

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      T convert(String source)
      String getFormat()
      • Methods inherited from class org.springframework.core.convert.converter.Converter

        andThen
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExceptionWrappingConverter

        ExceptionWrappingConverter(Class<T> expectedType, StructuredOutputConverter<T> delegate)