get all error messages from class ErrorMessage