Moved AlertError to its own file.