That’s more a workaround, but it happened to me and i used the simple class Exception for it.
Exception