@@ -84,7 +84,7 @@ public abstract class DevToolsDomains
8484 /// <param name="protocolVersion">The version of the DevTools Protocol to use.</param>
8585 /// <param name="session">The <see cref="DevToolsSession"/> for which to initialiize the domains.</param>
8686 /// <returns>The <see cref="DevToolsDomains"/> object containing the version-specific domains.</returns>
87- /// <exception cref="ArgumentOutOfRangeException ">If <paramref name="protocolVersion"/> is negative.</exception>
87+ /// <exception cref="ArgumentException ">If <paramref name="protocolVersion"/> is negative.</exception>
8888 /// <exception cref="WebDriverException">If the desired protocol version is not supported.</exception>
8989 public static DevToolsDomains InitializeDomains ( int protocolVersion , DevToolsSession session )
9090 {
@@ -98,13 +98,13 @@ public static DevToolsDomains InitializeDomains(int protocolVersion, DevToolsSes
9898 /// <param name="session">The <see cref="DevToolsSession"/> for which to initialiize the domains.</param>
9999 /// <param name="versionRange">The range of versions within which to match the provided version number. Defaults to 5 versions.</param>
100100 /// <returns>The <see cref="DevToolsDomains"/> object containing the version-specific domains.</returns>
101- /// <exception cref="ArgumentOutOfRangeException ">If <paramref name="protocolVersion"/> is negative.</exception>
101+ /// <exception cref="ArgumentException ">If <paramref name="protocolVersion"/> is negative.</exception>
102102 /// <exception cref="WebDriverException">If the desired protocol version is not in the supported range.</exception>
103103 public static DevToolsDomains InitializeDomains ( int protocolVersion , DevToolsSession session , int versionRange )
104104 {
105105 if ( versionRange < 0 )
106106 {
107- throw new ArgumentOutOfRangeException ( nameof ( versionRange ) , "Version range must not be negative" ) ;
107+ throw new ArgumentException ( "Version range must be positive" , nameof ( versionRange ) ) ;
108108 }
109109
110110 // Return fast on an exact match
0 commit comments