`Exception` is ambigous. I'd suggest using `\Exception` or \OCP\Exception` to make this clear.