Remove unused forward declaration, fix exception message