mirror of
https://github.com/soukoku/ntwain.git
synced 2025-08-20 07:30:33 +08:00
Updated exception message to include capability id.
This commit is contained in:
parent
b5cd2f6e17
commit
abd3c9c65c
@ -75,7 +75,8 @@ namespace NTwain
|
||||
ContainerType = capability.ContainerType,
|
||||
}.ReadRangeValue(baseAddr);
|
||||
default:
|
||||
throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, Resources.CapHasBadContainer, capability.ContainerType), "capability");
|
||||
throw new ArgumentException(string.Format(CultureInfo.InvariantCulture,
|
||||
Resources.CapHasBadContainer, capability.Capability, capability.ContainerType), "capability");
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
13
src/NTwain/Properties/Resources.Designer.cs
generated
13
src/NTwain/Properties/Resources.Designer.cs
generated
@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34014
|
||||
// Runtime Version:4.0.30319.0
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@ -79,7 +79,7 @@ namespace NTwain.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Capability has invalid container type {0}..
|
||||
/// Looks up a localized string similar to Capability {0} has invalid container type {1}..
|
||||
/// </summary>
|
||||
internal static string CapHasBadContainer {
|
||||
get {
|
||||
@ -87,15 +87,6 @@ namespace NTwain.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Capability contains no data..
|
||||
/// </summary>
|
||||
internal static string CapHasNoData {
|
||||
get {
|
||||
return ResourceManager.GetString("CapHasNoData", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to The string value has exceeded the maximum length allowed..
|
||||
/// </summary>
|
||||
|
@ -124,10 +124,7 @@
|
||||
<value>Invalid value type for {0}.</value>
|
||||
</data>
|
||||
<data name="CapHasBadContainer" xml:space="preserve">
|
||||
<value>Capability has invalid container type {0}.</value>
|
||||
</data>
|
||||
<data name="CapHasNoData" xml:space="preserve">
|
||||
<value>Capability contains no data.</value>
|
||||
<value>Capability {0} has invalid container type {1}.</value>
|
||||
</data>
|
||||
<data name="MaxStringLengthExceeded" xml:space="preserve">
|
||||
<value>The string value has exceeded the maximum length allowed.</value>
|
||||
|
Loading…
Reference in New Issue
Block a user