Skip to content

Commit 9354f38

Browse files
author
Sharon Shabtai
committed
code review changes
1 parent d10d95f commit 9354f38

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ds3-sdk/src/main/java/com/spectralogic/ds3client/exceptions/ContentLengthNotMatchException.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,26 @@
1818
import java.io.IOException;
1919

2020
public class ContentLengthNotMatchException extends IOException {
21+
private final String fileName;
22+
private final long contentLenght;
23+
private final long totalBytes;
2124
public ContentLengthNotMatchException(final String fileName, final long contentLenght, final long totalBytes) {
2225
super(String.format("The Content length for %s (%d) not match the number of byte read (%d)", fileName, contentLenght, totalBytes));
26+
27+
this.fileName = fileName;
28+
this.contentLenght = contentLenght;
29+
this.totalBytes = totalBytes;
30+
}
31+
32+
public String getFileName() {
33+
return this.fileName;
34+
}
35+
36+
public long getContentLenght() {
37+
return this.contentLenght;
38+
}
39+
40+
public long getTotalBytes() {
41+
return this.totalBytes;
2342
}
2443
}

0 commit comments

Comments
 (0)