This causes the exception stack trace to be added to the instance
every time the exception is raised, increasing memory usage and causing
a memory leak.
The state to exception map is preserved without initialising the
exceptions, instead they are initialised when needed to be raised.
Fixes: 333ffdb
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
This causes the exception stack trace to be added to the instance every time the exception is raised, increasing memory usage and causing a memory leak.
The state to exception map is preserved without initialising the exceptions, instead they are initialised when needed to be raised.
Fixes: 333ffdb
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.