diff --git a/SabreTools.Serialization/Wrappers/WrapperBase.cs b/SabreTools.Serialization/Wrappers/WrapperBase.cs
index 8b1d2c2c..ba25a5cb 100644
--- a/SabreTools.Serialization/Wrappers/WrapperBase.cs
+++ b/SabreTools.Serialization/Wrappers/WrapperBase.cs
@@ -92,7 +92,6 @@ namespace SabreTools.Serialization.Wrappers
/// Underlying data for the wrapper
/// Offset into the data to use as the window start
/// Length of the window into the data
- ///
protected WrapperBase(byte[] data, int offset, int length)
{
if (offset < 0 || offset >= data.Length)
@@ -133,11 +132,10 @@ namespace SabreTools.Serialization.Wrappers
/// Underlying data for the wrapper
/// Offset into the data to use as the window start
/// Length of the window into the data
- ///
protected WrapperBase(Stream data, long offset, long length)
{
if (!data.CanSeek || !data.CanRead)
- throw new ArgumentOutOfRangeException(nameof(data));
+ throw new InvalidDataException(nameof(data));
if (offset < 0 || offset >= data.Length)
throw new ArgumentOutOfRangeException(nameof(offset));
if (length < 0 || offset + length >= data.Length)