static RuntimeException wrapPatternSyntaxException(PatternSyntaxException e) { if (e == null) null; S pat = e.getPattern(); int i = e.getIndex(); ret new RuntimeException("Regular expression error between " + multiLineQuoteWithSpaces(substring(pat, 0, i)) + " and " + multiLineQuoteWithSpaces(substring(pat, i)) + " - " + e.getMessage()); }
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: | 446 / 734 |
Version history: | 4 change(s) |
Referenced in: | [show references] |