Skip to content

Commit 3206e03

Browse files
committed
Use correct exception type
1 parent 771c61c commit 3206e03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Azure.ServiceBus/Core/MessageBatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private void ThrowIfDisposed()
134134
{
135135
if (result == null)
136136
{
137-
throw new Exception("MessageBatch is has been disposed and cannot be re-used.");
137+
throw new ObjectDisposedException("MessageBatch is has been disposed and cannot be re-used.");
138138
}
139139
}
140140

0 commit comments

Comments
 (0)