What's a chemical pregnancy?

And how did you find out if you had one?