Add methods to return error as a string.