<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

StringImporterException

Represents an exception that occured while attempting to import a string value. This class cannot be inherited.
using Relativity.DataExchange.Resources; using System; using System.Globalization; using System.Runtime.Serialization; namespace Relativity.DataExchange.Data { [Serializable] public sealed class StringImporterException : ImporterException { public StringImporterException() { } public StringImporterException(string message) : base(message) { } public StringImporterException(string message, Exception innerException) : base(message, innerException) { } public StringImporterException(long row, int column, int length) : base(row, column, GetAdditionalInfoMessage(length)) { } public StringImporterException(long row, int column, int length, string fieldName) : base(row, column, fieldName, GetAdditionalInfoMessage(length, fieldName)) { } public StringImporterException(long row, int column, int sourceLength, int destinationMaxLength, string fieldName) : base(row, column, GetAdditionalInfoMessage(sourceLength, destinationMaxLength, fieldName), (Exception)null) { } private StringImporterException(SerializationInfo info, StreamingContext context) : base(info, context) { } internal static string GetAdditionalInfoMessage(int length) { return string.Format(CultureInfo.CurrentCulture, Strings.StringImporterMaxLengthWithoutFieldErrorAdditionalInfo, length); } internal static string GetAdditionalInfoMessage(int length, string fieldName) { return string.Format(CultureInfo.CurrentCulture, Strings.StringImporterMaxLengthWithFieldErrorAdditionalInfo, length, fieldName); } internal static string GetAdditionalInfoMessage(int sourceLength, int destinationMaxLength, string fieldName) { return string.Format(CultureInfo.CurrentCulture, Strings.StringImporterMaxLengthExWithFieldErrorAdditionalInfo, fieldName, sourceLength, destinationMaxLength); } } }