summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/server/StreamingFailedEventImpl.java
blob: 23fb3b0e86f7043d26704c6a0839e7fa767f0479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.vaadin.terminal.gwt.server;

import com.vaadin.terminal.StreamVariable;
import com.vaadin.terminal.StreamVariable.StreamingFailedEvent;

@SuppressWarnings("serial")
final class StreamingFailedEventImpl extends AbstractStreamingEvent implements
        StreamingFailedEvent {

    private final Exception exception;

    public StreamingFailedEventImpl(StreamVariable streamVariable, final String filename,
            final String type, long contentLength, long bytesReceived,
            final Exception exception) {
        super(streamVariable, filename, type, contentLength, bytesReceived);
        this.exception = exception;
    }

    public final Exception getException() {
        return exception;
    }

}