Skip to content

Commit 48ef02e

Browse files
llingllinggit
authored andcommitted
Error msg missed. Adding correct error msg.
1 parent 2f5d2ab commit 48ef02e

File tree

1 file changed

+3
-3
lines changed
  • marklogic-client-api/src/main/java/com/marklogic/client/datamovement

1 file changed

+3
-3
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/datamovement/LineSplitter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public Format getFormat() {
4545
*/
4646
public void setFormat(Format format) {
4747
if (format == null) {
48-
throw new IllegalArgumentException("some exception");
48+
throw new IllegalArgumentException("Format cannot be null.");
4949
}
5050

5151
this.format = format;
@@ -83,7 +83,7 @@ public Stream<StringHandle> split(InputStream input) throws IOException {
8383
*/
8484
public Stream<StringHandle> split(InputStream input, Charset charset) throws IOException {
8585
if (input == null) {
86-
throw new IllegalArgumentException("some exception");
86+
throw new IllegalArgumentException("InputStream cannot be null.");
8787
}
8888

8989
return split( (charset == null) ?
@@ -100,7 +100,7 @@ public Stream<StringHandle> split(InputStream input, Charset charset) throws IOE
100100
*/
101101
public Stream<StringHandle> split(Reader input) throws IOException {
102102
if (input == null) {
103-
throw new IllegalArgumentException("some exception");
103+
throw new IllegalArgumentException("Reader cannot be null.");
104104
}
105105
return new BufferedReader(input)
106106
.lines()

0 commit comments

Comments
 (0)