implements getErrorString