Moved error messages into exception classes