Thanks @dpup. I agree that inheriting from Error is more explicit.