Added convertExceptionCode method