Class ExceptionMarshaller<E extends Throwable>

  • Type Parameters:
    E - the target type of this marshaller
    All Implemented Interfaces:
    org.infinispan.protostream.BaseMarshaller<E>, org.infinispan.protostream.ProtobufTagMarshaller<E>, Marshallable<E>, ProtoStreamMarshaller<E>

    public class ExceptionMarshaller<E extends Throwable>
    extends Object
    implements ProtoStreamMarshaller<E>
    Generic marshaller for a Throwable.
    Author:
    Paul Ferraro
    • 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.