Class AttivioExceptionConverter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
    Direct Known Subclasses:
    TransportExceptionConverter

    public class AttivioExceptionConverter
    extends AbstractConverter
    Handles serialization of AttivioExceptions.
    • Constructor Detail

      • AttivioExceptionConverter

        public AttivioExceptionConverter()
    • Method Detail

      • canConvert

        public boolean canConvert​(java.lang.Class type)
      • marshal

        public void marshal​(java.lang.Object source,
                            com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                            com.thoughtworks.xstream.converters.MarshallingContext context)
      • unmarshal

        public java.lang.Object unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                          com.thoughtworks.xstream.converters.UnmarshallingContext context)
      • newAttivioException

        protected AttivioException newAttivioException​(java.lang.String context,
                                                       ErrorCode code,
                                                       java.lang.Throwable cause,
                                                       java.lang.String message)
        Create a new AttivioException instance.