Class ExceptionMarshaller<E extends Throwable>

    • Constructor Detail

      • ExceptionMarshaller

        public ExceptionMarshaller​(Class<E> exceptionClass)
    • Method Detail

      • getJavaClass

        public Class<? extends E> getJavaClass()
        Description copied from interface: Marshallable
        Returns the type of object handled by this marshallable instance.
        Specified by:
        getJavaClass in interface org.infinispan.protostream.BaseMarshaller<E extends Throwable>
        Specified by:
        getJavaClass in interface Marshallable<E extends Throwable>
        Returns:
        the type of object handled by this marshallable instance.
      • writeTo

        public void writeTo​(ProtoStreamWriter writer,
                            E exception)
                     throws IOException
        Description copied from interface: Writable
        Writes the specified object to the specified writer.
        Specified by:
        writeTo in interface Writable<E extends Throwable>
        Parameters:
        writer - a ProtoStream writer
        exception - the object to be written
        Throws:
        IOException - if the object could not be written