StatusMessage class and error raportiong