TDPException extends TalendRuntimeException { @Override public String getLocalizedMessage() { return localizedMessage; } TDPException();  TDPException(ErrorCode code, Throwable cause, String message, String messageTitle,
            ExceptionContext context);  TDPException(ErrorCode code, Throwable cause, ExceptionContext context);  TDPException(ErrorCode code, Throwable cause);  TDPException(ErrorCode code, ExceptionContext context);  TDPException(JsonErrorCode code);  TDPException(ErrorCode code); static RuntimeException rethrowOrWrap(Throwable throwable); static RuntimeException rethrowOrWrap(Throwable throwable, ErrorCode errorCode); @Override String getMessage(); @Override String getLocalizedMessage(); String getMessageTitle(); @Override @Deprecated void writeTo(Writer writer);  }
@Test public void getLocalizedMessage() throws Exception { final TDPException tdpException = new TDPException(UNEXPECTED_EXCEPTION); assertThat(tdpException.getLocalizedMessage(), startsWith("Une erreur inattendue est survenue")); }