Updates the developer error.
Replaces all error messages with constants.
Adds exception to log messages.