From 3c47351567e56861f9d20ddc8d23878a0afb00dc Mon Sep 17 00:00:00 2001 From: wkloster Date: Fri, 14 Feb 2020 18:55:34 +0100 Subject: [PATCH 1/2] helpful for troubleshooting --- src/main/java/com/sforce/async/CSVReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sforce/async/CSVReader.java b/src/main/java/com/sforce/async/CSVReader.java index f3e24270..a721e0ff 100644 --- a/src/main/java/com/sforce/async/CSVReader.java +++ b/src/main/java/com/sforce/async/CSVReader.java @@ -332,7 +332,7 @@ public static class CSVParseException extends IOException { final int recordNumber; CSVParseException(String message, int lineno) { - super(message); + super(message + String.format(" - Line number %d ", lineno)); recordNumber = lineno; } From be9ebe953b13821825a3a8436625cc4a93a11926 Mon Sep 17 00:00:00 2001 From: wkloster Date: Fri, 14 Feb 2020 20:16:36 +0100 Subject: [PATCH 2/2] Added line number to exception message. It's helpful for troubleshooting. --- .../async/CSVReader$CSVParseException.class | Bin 0 -> 1251 bytes com/sforce/async/CSVReader.class | Bin 0 -> 6770 bytes .../async/CSVReader$CSVParseException.class | Bin 0 -> 1251 bytes src/main/java/com/sforce/async/CSVReader.class | Bin 0 -> 6770 bytes 4 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 com/sforce/async/CSVReader$CSVParseException.class create mode 100644 com/sforce/async/CSVReader.class create mode 100644 src/main/java/com/sforce/async/CSVReader$CSVParseException.class create mode 100644 src/main/java/com/sforce/async/CSVReader.class diff --git a/com/sforce/async/CSVReader$CSVParseException.class b/com/sforce/async/CSVReader$CSVParseException.class new file mode 100644 index 0000000000000000000000000000000000000000..40a13d6135b012f95b1ac31105f3b1091d73d781 GIT binary patch literal 1251 zcmah|YflqF6g|_HZo4j2ih#U}7H!L;z5$Dm*hpxC6e*&{Ps4U73++y`J0L#MN6T@8t_i*1pFCG}U0>g_QGR&E>k$3kbRh8%Nv2Etht4dR}$sJd`{Ah}%vZT$> zAAlJp+ZIl-&Rtiy3FEtxNsyNIKI--lE$x+>X9)I1}!BVKQb@}B2HDcj|PpHaAU z7#(xSI_jjs6~l6XbsxG^I;U6Y7WNI+@d%3yA;uVn8~jidrEPNc)>8Wvxr*D0x?Bp- z?~?bm0^}J61E}6m(TMD5Sn_0&0QXaON44=A% zeNtxz*0^1*3pd@#Ec{t$7jlWXecTiQ>Hj%NU!utC^@^oLK?7Z;nLio|s*Pdt-+7p( zE3DInCjY%TrYKBrFZu{cQ1l#H8%gD6lPvNbq4(kOQ-mw0h@7DZI6*Ww{tem}UjxJ> z1y;r=+r$)m-B#=O)p7{Y1L(OE#ByT+yb2<08*%oA7)cEHya`$v@p^J!p?yBzD(Zpk n9U{0!SO|j{YOlk%O>2^nIEHbHzROs_V~k*u@EEbC=uQ0wqGUY> literal 0 HcmV?d00001 diff --git a/com/sforce/async/CSVReader.class b/com/sforce/async/CSVReader.class new file mode 100644 index 0000000000000000000000000000000000000000..638225695be9ba3b60611dea946eaba526063c02 GIT binary patch literal 6770 zcma)A33yc175;B#l9^0iAPWfu5`7?nFiAjEpvY1oLXCuA4Ty-fJZ4_V$mG3o<_$|* zTi4dw+Qq6BTU%;r(?wfoNrIu;9lL7x)^2v+Yxm8f>3{BwCcHtw8wK1E!kZ!}!<%KI_ue9-x60a`5v;)5$~nDDz}*7w z37~BD4KjLr0QcUbNB7F~kbwIHyd#2l;(i&uD};AP(16=za#%+15%7S3_X;>7;C-_D z{t67>0~N^Ng91Jj!iOVh#)Ba|R73fX3F5~hScs3;P>EwTD3P^I7>Zyih6S9E>BAw6 z2)mQA@(Ce&M3x^7Dr`matn32&`JZA;z&m)lmHdM~;{A=u%@dBXIrgkyJS`*+*vt=4XR<`nb} z!LOULyi>2w8ei{pQd!Tpu|A@q_?9M%({-iKGN- zXHJYFTM8S`OgB}@=VKJM;=Vu%OAGBauJ;svV**NMY$!@o)FRKzr)rPwZPq0tpWA_! zMN(TbQ#OJvopN-wzazyZPZQ~Jv+0=a7m#VJlYW3MmLjN7(QRkE&9>w_D^dM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$d5edd)qAQg!qsmWmh88^-xvYBNXl`2}m6 zN)9vgTHA)OOcHbMfST7-6*=A-bEhm1)&)fr zGOJ^L2*OQVp{~AQ>kCfxhaCe53_SNmi3cv6cZ80Y@gUAC@cHAc3&3Y+{m-&aoZ{X5 z1=fi#<7|8t^YJ+A#1r)S*H}Tm$vW{Z#>ls^4&TE|@Fau%`wa3QF-(7qgM9hlil5;P zeEi>mU*Ii#^528sF!Xop$@w4T_D}qf&+Mo8D*h$@%hl6d z9hDxH?@7g%PEb{=QZ<|H+gw$y7V&}ErYhC>YMQ#3z1$}5cB^{zQZ-9mtr}EZHR>2V z2i4`wECyi+D^Fv#n$}!hKYLzPUEOJzYUY1XUQ$yu9Qh<>Q0}5Zni-b4i=*+*5w;!- z^@}7^{HCOgUnn!rWFg7;sLm1hGfjnfMeAdzkU$&8hAxSyjoS$p&>7Q?V2;F!Oh;(T z!je|toY|~1Q1cN~%`j98YE%?Wsuj!BVy!3}C!=M85d68qPbijYUx;O`ZI2R~~;Vv4diC-EKr96MegB%oEb~R@=v();i^JrJO_sgPlc+*bm zeAGoO7VC(4YjOPA$@mu&e*=y4T5>F53BQeB>ADuOhJp32griMt{>m9;)oMDc-$%H< YfUfu`v5snZT*E;PzpCNaH2l{8092ctS^xk5 literal 0 HcmV?d00001 diff --git a/src/main/java/com/sforce/async/CSVReader$CSVParseException.class b/src/main/java/com/sforce/async/CSVReader$CSVParseException.class new file mode 100644 index 0000000000000000000000000000000000000000..40a13d6135b012f95b1ac31105f3b1091d73d781 GIT binary patch literal 1251 zcmah|YflqF6g|_HZo4j2ih#U}7H!L;z5$Dm*hpxC6e*&{Ps4U73++y`J0L#MN6T@8t_i*1pFCG}U0>g_QGR&E>k$3kbRh8%Nv2Etht4dR}$sJd`{Ah}%vZT$> zAAlJp+ZIl-&Rtiy3FEtxNsyNIKI--lE$x+>X9)I1}!BVKQb@}B2HDcj|PpHaAU z7#(xSI_jjs6~l6XbsxG^I;U6Y7WNI+@d%3yA;uVn8~jidrEPNc)>8Wvxr*D0x?Bp- z?~?bm0^}J61E}6m(TMD5Sn_0&0QXaON44=A% zeNtxz*0^1*3pd@#Ec{t$7jlWXecTiQ>Hj%NU!utC^@^oLK?7Z;nLio|s*Pdt-+7p( zE3DInCjY%TrYKBrFZu{cQ1l#H8%gD6lPvNbq4(kOQ-mw0h@7DZI6*Ww{tem}UjxJ> z1y;r=+r$)m-B#=O)p7{Y1L(OE#ByT+yb2<08*%oA7)cEHya`$v@p^J!p?yBzD(Zpk n9U{0!SO|j{YOlk%O>2^nIEHbHzROs_V~k*u@EEbC=uQ0wqGUY> literal 0 HcmV?d00001 diff --git a/src/main/java/com/sforce/async/CSVReader.class b/src/main/java/com/sforce/async/CSVReader.class new file mode 100644 index 0000000000000000000000000000000000000000..638225695be9ba3b60611dea946eaba526063c02 GIT binary patch literal 6770 zcma)A33yc175;B#l9^0iAPWfu5`7?nFiAjEpvY1oLXCuA4Ty-fJZ4_V$mG3o<_$|* zTi4dw+Qq6BTU%;r(?wfoNrIu;9lL7x)^2v+Yxm8f>3{BwCcHtw8wK1E!kZ!}!<%KI_ue9-x60a`5v;)5$~nDDz}*7w z37~BD4KjLr0QcUbNB7F~kbwIHyd#2l;(i&uD};AP(16=za#%+15%7S3_X;>7;C-_D z{t67>0~N^Ng91Jj!iOVh#)Ba|R73fX3F5~hScs3;P>EwTD3P^I7>Zyih6S9E>BAw6 z2)mQA@(Ce&M3x^7Dr`matn32&`JZA;z&m)lmHdM~;{A=u%@dBXIrgkyJS`*+*vt=4XR<`nb} z!LOULyi>2w8ei{pQd!Tpu|A@q_?9M%({-iKGN- zXHJYFTM8S`OgB}@=VKJM;=Vu%OAGBauJ;svV**NMY$!@o)FRKzr)rPwZPq0tpWA_! zMN(TbQ#OJvopN-wzazyZPZQ~Jv+0=a7m#VJlYW3MmLjN7(QRkE&9>w_D^dMeWtD)q2jk`uC8^u>O#48Jq6>Dv zkb0~=rq#>q(PVM(4>2%`C&Rqf@w8HgDp7&33d*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