Exemplo n.º 1
0
 /// <summary>
 /// Returns the last asynchronous error that occured internally
 /// </summary>
 /// <returns></returns>
 public string GetLastError()
 {
     if (currentConnection == null)
     {
         throw new TNHostException("TNEmulator is not connected", "There is no currently open TN3270 connection", null);
     }
     return(currentConnection.GetLastError());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns the last asynchronous error that occured internally
 /// </summary>
 /// <returns></returns>
 public string GetLastError()
 {
     if (currentConnection == null)
     {
         throw new TNHostException("Terminal não está conectado", "Não existe conexão com terminal 3270 aberta", null);
     }
     return(currentConnection.GetLastError());
 }