class GridDhtPartitionSupplyMessageV2 extends GridDhtPartitionSupplyMessage {
    /** */
    private static final long serialVersionUID = 0L;

    /** Available since. */
    public static final IgniteProductVersion AVAILABLE_SINCE = IgniteProductVersion.fromString("2.7.0");

    /** Supplying process error. */
    @GridDirectTransient
    private Throwable err;

    /** Supplying process error bytes. */
    private byte[] errBytes;

    /**
     * Default constructor.
     */
    public GridDhtPartitionSupplyMessageV2() {
    }

    /**
     * @param rebalanceId Rebalance id.
     * @param grpId Group id.
     * @param topVer Topology version.
     * @param addDepInfo Add dep info.
     * @param err Supply process error.
     */
    public GridDhtPartitionSupplyMessageV2(
        long rebalanceId,
        int grpId,
        AffinityTopologyVersion topVer,
        boolean addDepInfo,
        Throwable err
    ) {
        super(rebalanceId, grpId, topVer, addDepInfo);

        this.err = err;
    }

    /** {@inheritDoc} */
    @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException {
        super.prepareMarshal(ctx);

        if (err != null && errBytes == null)
            errBytes = U.marshal(ctx, err);
    }

    /** {@inheritDoc} */
    @Override public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException {
        super.finishUnmarshal(ctx, ldr);

        if (errBytes != null && err == null)
            err = U.unmarshal(ctx, errBytes, U.resolveClassLoader(ldr, ctx.gridConfig()));
    }

    /** {@inheritDoc} */
    @Override public boolean writeTo(ByteBuffer buf, MessageWriter writer) {<FILL_FUNCTION_BODY>}

    /** {@inheritDoc} */
    @Override public boolean readFrom(ByteBuffer buf, MessageReader reader) {
        reader.setBuffer(buf);

        if (!reader.beforeMessageRead())
            return false;

        if (!super.readFrom(buf, reader))
            return false;

        switch (reader.state()) {
            case 13:
                errBytes = reader.readByteArray("errBytes");

                if (!reader.isLastRead())
                    return false;

                reader.incrementState();

        }

        return reader.afterMessageRead(GridDhtPartitionSupplyMessageV2.class);
    }

    /** {@inheritDoc} */
    @Nullable @Override public Throwable error() {
        return err;
    }

    /** {@inheritDoc} */
    @Override public short directType() {
        return 158;
    }

    /** {@inheritDoc} */
    @Override public byte fieldsCount() {
        return 14;
    }
}

        writer.setBuffer(buf);

        if (!super.writeTo(buf, writer))
            return false;

        if (!writer.isHeaderWritten()) {
            if (!writer.writeHeader(directType(), fieldsCount()))
                return false;

            writer.onHeaderWritten();
        }

        switch (writer.state()) {
            case 13:
                if (!writer.writeByteArray("errBytes", errBytes))
                    return false;

                writer.incrementState();

        }

        return true;
    
<methods>public void <init>() ,public boolean addDeploymentInfo() ,public void addEstimatedKeysCount(long) ,public void addKeysForCache(int, long) ,public short directType() ,public long estimatedKeysCount() ,public byte fieldsCount() ,public void finishUnmarshal(GridCacheSharedContext#RAW, java.lang.ClassLoader) throws org.apache.ignite.IgniteCheckedException,public boolean ignoreClassErrors() ,public long keysForCache(int) ,public boolean readFrom(java.nio.ByteBuffer, org.apache.ignite.plugin.extensions.communication.MessageReader) ,public int size() ,public java.lang.String toString() ,public org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion topologyVersion() ,public boolean writeTo(java.nio.ByteBuffer, org.apache.ignite.plugin.extensions.communication.MessageWriter) <variables>private Collection<java.lang.Integer> clean,private long estimatedKeysCnt,private Map<java.lang.Integer,org.apache.ignite.internal.processors.cache.CacheEntryInfoCollection> infos,private Map<java.lang.Integer,java.lang.Long> keysPerCache,private Map<java.lang.Integer,java.lang.Long> last,private Collection<java.lang.Integer> missed,private int msgSize,private long rebalanceId,private static final long serialVersionUID,private org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion topVer