Make ErrorMessage class static