Skip to content

Commit b4a6663

Browse files
nvborisenkoM1troll
authored andcommitted
[dotnet] Remove all obsolete exception ctors in inherited exceptions
1 parent 8950c5c commit b4a6663

14 files changed

+0
-168
lines changed

dotnet/src/webdriver/DriverServiceNotFoundException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,5 @@ public DriverServiceNotFoundException(string message, Exception innerException)
5757
: base(message, innerException)
5858
{
5959
}
60-
61-
/// <summary>
62-
/// Initializes a new instance of the <see cref="DriverServiceNotFoundException"/> class with serialized data.
63-
/// </summary>
64-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized
65-
/// object data about the exception being thrown.</param>
66-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual
67-
/// information about the source or destination.</param>
68-
protected DriverServiceNotFoundException(SerializationInfo info, StreamingContext context)
69-
: base(info, context)
70-
{
71-
}
7260
}
7361
}

dotnet/src/webdriver/InsecureCertificateException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,5 @@ public InsecureCertificateException(string message, Exception innerException)
5757
: base(message, innerException)
5858
{
5959
}
60-
61-
/// <summary>
62-
/// Initializes a new instance of the <see cref="InsecureCertificateException"/> class with serialized data.
63-
/// </summary>
64-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized
65-
/// object data about the exception being thrown.</param>
66-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual
67-
/// information about the source or destination.</param>
68-
protected InsecureCertificateException(SerializationInfo info, StreamingContext context)
69-
: base(info, context)
70-
{
71-
}
7260
}
7361
}

dotnet/src/webdriver/InvalidCookieDomainException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,5 @@ public InvalidCookieDomainException(string message, Exception innerException)
5757
: base(message, innerException)
5858
{
5959
}
60-
61-
/// <summary>
62-
/// Initializes a new instance of the <see cref="InvalidCookieDomainException"/> class with serialized data.
63-
/// </summary>
64-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized
65-
/// object data about the exception being thrown.</param>
66-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual
67-
/// information about the source or destination.</param>
68-
protected InvalidCookieDomainException(SerializationInfo info, StreamingContext context)
69-
: base(info, context)
70-
{
71-
}
7260
}
7361
}

dotnet/src/webdriver/InvalidElementStateException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,5 @@ public InvalidElementStateException(string message, Exception innerException)
5757
: base(message, innerException)
5858
{
5959
}
60-
61-
/// <summary>
62-
/// Initializes a new instance of the <see cref="InvalidElementStateException"/> class with serialized data.
63-
/// </summary>
64-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized
65-
/// object data about the exception being thrown.</param>
66-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual
67-
/// information about the source or destination.</param>
68-
protected InvalidElementStateException(SerializationInfo info, StreamingContext context)
69-
: base(info, context)
70-
{
71-
}
7260
}
7361
}

dotnet/src/webdriver/InvalidSelectorException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,6 @@ public InvalidSelectorException(string message, Exception innerException)
6363
{
6464
}
6565

66-
/// <summary>
67-
/// Initializes a new instance of the <see cref="InvalidSelectorException"/> class with serialized data.
68-
/// </summary>
69-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized
70-
/// object data about the exception being thrown.</param>
71-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual
72-
/// information about the source or destination.</param>
73-
protected InvalidSelectorException(SerializationInfo info, StreamingContext context)
74-
: base(info, context)
75-
{
76-
}
77-
7866
/// <summary>
7967
/// Add information about obtaining additional support from documentation to this exception.
8068
/// </summary>

dotnet/src/webdriver/JavaScriptException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,5 @@ public JavaScriptException(string message, Exception innerException)
5757
: base(message, innerException)
5858
{
5959
}
60-
61-
/// <summary>
62-
/// Initializes a new instance of the <see cref="JavaScriptException"/> class with serialized data.
63-
/// </summary>
64-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized
65-
/// object data about the exception being thrown.</param>
66-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual
67-
/// information about the source or destination.</param>
68-
protected JavaScriptException(SerializationInfo info, StreamingContext context)
69-
: base(info, context)
70-
{
71-
}
7260
}
7361
}

dotnet/src/webdriver/MoveTargetOutOfBoundsException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,5 @@ public MoveTargetOutOfBoundsException(string message, Exception innerException)
5858
: base(message, innerException)
5959
{
6060
}
61-
62-
/// <summary>
63-
/// Initializes a new instance of the <see cref="MoveTargetOutOfBoundsException"/> class with serialized data.
64-
/// </summary>
65-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized
66-
/// object data about the exception being thrown.</param>
67-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual
68-
/// information about the source or destination.</param>
69-
protected MoveTargetOutOfBoundsException(SerializationInfo info, StreamingContext context)
70-
: base(info, context)
71-
{
72-
}
7361
}
7462
}

dotnet/src/webdriver/NotFoundException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,5 @@ public NotFoundException(string message, Exception innerException)
5757
: base(message, innerException)
5858
{
5959
}
60-
61-
/// <summary>
62-
/// Initializes a new instance of the <see cref="NotFoundException"/> class with serialized data.
63-
/// </summary>
64-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized
65-
/// object data about the exception being thrown.</param>
66-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual
67-
/// information about the source or destination.</param>
68-
protected NotFoundException(SerializationInfo info, StreamingContext context)
69-
: base(info, context)
70-
{
71-
}
7260
}
7361
}

dotnet/src/webdriver/StaleElementReferenceException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,6 @@ public StaleElementReferenceException(string message, Exception innerException)
6363
{
6464
}
6565

66-
/// <summary>
67-
/// Initializes a new instance of the <see cref="StaleElementReferenceException"/> class with serialized data.
68-
/// </summary>
69-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized
70-
/// object data about the exception being thrown.</param>
71-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual
72-
/// information about the source or destination.</param>
73-
protected StaleElementReferenceException(SerializationInfo info, StreamingContext context)
74-
: base(info, context)
75-
{
76-
}
77-
7866
/// <summary>
7967
/// Add information about obtaining additional support from documentation to this exception.
8068
/// </summary>

dotnet/src/webdriver/UnableToSetCookieException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,5 @@ public UnableToSetCookieException(string message, Exception innerException)
5757
: base(message, innerException)
5858
{
5959
}
60-
61-
/// <summary>
62-
/// Initializes a new instance of the <see cref="UnableToSetCookieException"/> class with serialized data.
63-
/// </summary>
64-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized
65-
/// object data about the exception being thrown.</param>
66-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual
67-
/// information about the source or destination.</param>
68-
protected UnableToSetCookieException(SerializationInfo info, StreamingContext context)
69-
: base(info, context)
70-
{
71-
}
7260
}
7361
}

0 commit comments

Comments
 (0)