EU referendum: What does a rating agency warning mean?

The credit rating agency Moody's has said that the UK could have its credit rating downgraded after the country voted to leave the EU.

The BBC’s Andrew Verity explains what a warning from a rating agency means.