'Declaration Public NotInheritable Class TdError
'Usage Dim instance As TdError
public sealed class TdError
public ref class TdError sealed
'Declaration Public NotInheritable Class TdError
'Usage Dim instance As TdError
public sealed class TdError
public ref class TdError sealed
TdException class encapsulates one or more instances of the TdError class.
Warnings are not exceptions and therefore are reported using TdConnection.InfoMessage event.
public TdConnection OpenConnection(String connectionString) { try { TdConnection cn = new TdConnection(connectionString); cn.Open(); return cn; } catch(TdException e) { for (int index = 0; index < e.Errors.Count; index++) { Console.WriteLine(“ERROR: {0} ({1})”, e.Errors[0].Message, e.Errors[0].Number); } throw; } return null; }
System.Object
Teradata.Client.Provider.TdError
Product | Versions | Platforms |
---|---|---|
.NET | 2.1, 3.1, 6 | Windows, Linux, MacOS |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |