Skip to content

Commit 5beabbc

Browse files
Update src/Neo/Extensions/Persistence/ReadOnlyViewExtensions.cs
Co-authored-by: Christopher Schuchardt <[email protected]>
1 parent 976dd32 commit 5beabbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Neo/Extensions/Persistence/ReadOnlyViewExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ internal static byte[] GetSeekPrefix(this byte[]? keyPrefix, ushort maxSizeWhenA
149149
if (maxSizeWhenAll0xff > 0)
150150
seekPrefix = ((byte)0xff).Repeat(maxSizeWhenAll0xff);
151151
else
152-
throw new ArgumentException($"{nameof(keyPrefix)} with all bytes being 0xff is not supported now");
152+
throw new NotSupportedException("Array filled with max value (0xFF)", new ArgumentException(nameof(keyPrefix)));
153153
}
154154
return seekPrefix;
155155
}

0 commit comments

Comments
 (0)