Well I solved it by not using a static method I guess
At least I can’t find any in my project anymore. So I must have got rid of it.
If I remember correctly my idea was to create a general error handler. So I simply created a provider to do so. Works great so far.
Perhaps post your problem in bigger detail and we can see how to do it without a static method.