1 | static RuntimeException wrapPatternSyntaxException(PatternSyntaxException e) { |
2 | if (e == null) null; |
3 | S pat = e.getPattern(); |
4 | int i = e.getIndex(); |
5 | ret new RuntimeException("Regular expression error between " + multiLineQuoteWithSpaces(substring(pat, 0, i)) + " and " + multiLineQuoteWithSpaces(substring(pat, i)) + " - " + e.getMessage()); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1018453 |
Snippet name: | wrapPatternSyntaxException |
Eternal ID of this version: | #1018453/5 |
Text MD5: | 6b8569a0062b3b414d379f8dd02fb4fa |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-30 22:02:23 |
Source code size: | 353 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 448 / 737 |
Version history: | 4 change(s) |
Referenced in: | [show references] |