Skip to content

Commit b7cdd29

Browse files
author
Emile Joubert
committed
Inheritance of AuthenticationFailureException in keeping with Java client
1 parent 3bb84f3 commit b7cdd29

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

projects/client/RabbitMQ.Client/src/client/exceptions/AuthenticationFailureException.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ namespace RabbitMQ.Client.Exceptions
4444
{
4545
/// <summary> Thrown when the cause is an
4646
/// authentication failure. </summary>
47-
public class AuthenticationFailureException : Exception
47+
public class AuthenticationFailureException : PossibleAuthenticationFailureException
4848
{
49-
public AuthenticationFailureException(String msg)
50-
: base(msg)
49+
public AuthenticationFailureException(String msg) : base(msg)
5150
{
5251
}
5352
}

projects/client/RabbitMQ.Client/src/client/exceptions/PossibleAuthenticationFailureException.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ namespace RabbitMQ.Client.Exceptions
4646
/// authentication failure. </summary>
4747
public class PossibleAuthenticationFailureException : Exception
4848
{
49-
public PossibleAuthenticationFailureException(String msg, Exception inner)
50-
: base(msg, inner)
49+
public PossibleAuthenticationFailureException(String msg, Exception inner) : base(msg, inner)
50+
{
51+
}
52+
public PossibleAuthenticationFailureException(String msg) : base(msg)
5153
{
5254
}
5355
}

0 commit comments

Comments
 (0)