Move the missing key error message into the error class