javanna commented on PR #12270: URL: https://github.com/apache/lucene/pull/12270#issuecomment-1538216674
Actually, I have second thoughts about making this a singleton, because exceptions have public methods like `initCause` and `setStacktrace` which change the internal state of the exception. I guess my initial concerns about misusing the exception would stay the same, and making it a singleton would make those possibly worse because misuse could cause changes to the shared instance. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org