Skip to content

Commit 9a3c285

Browse files
committed
Move exceptions to Exceptions namespace
1 parent 602450d commit 9a3c285

10 files changed

+11
-12
lines changed

projects/client/RabbitMQ.Client/src/client/impl/ChannelErrorException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
using RabbitMQ.Client.Framing;
4242

43-
namespace RabbitMQ.Client.Impl
43+
namespace RabbitMQ.Client.Exceptions
4444
{
4545
/// <summary> Thrown when the server sends a frame along a channel
4646
/// that we do not currently have a Session entry in our

projects/client/RabbitMQ.Client/src/client/impl/CommandAssembler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
//---------------------------------------------------------------------------
4040

4141
using System.Buffers;
42-
42+
using RabbitMQ.Client.Exceptions;
4343
using RabbitMQ.Client.Framing.Impl;
4444
using RabbitMQ.Util;
4545

projects/client/RabbitMQ.Client/src/client/impl/ContentHeaderPropertyReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
using System;
4242
using System.Collections.Generic;
43-
43+
using RabbitMQ.Client.Exceptions;
4444
using RabbitMQ.Util;
4545

4646
namespace RabbitMQ.Client.Impl

projects/client/RabbitMQ.Client/src/client/impl/HardProtocolException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
// Copyright (c) 2007-2020 VMware, Inc. All rights reserved.
3939
//---------------------------------------------------------------------------
4040

41-
namespace RabbitMQ.Client.Impl
41+
namespace RabbitMQ.Client.Exceptions
4242
{
4343
///<summary>Subclass of ProtocolException representing problems
4444
///requiring a connection.close.</summary>

projects/client/RabbitMQ.Client/src/client/impl/MalformedFrameException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
using RabbitMQ.Client.Framing;
4242

43-
namespace RabbitMQ.Client.Impl
43+
namespace RabbitMQ.Client.Exceptions
4444
{
4545
///<summary>Thrown when frame parsing code detects an error in the
4646
///wire-protocol encoding of a frame.</summary>

projects/client/RabbitMQ.Client/src/client/impl/ProtocolException.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@
3838
// Copyright (c) 2007-2020 VMware, Inc. All rights reserved.
3939
//---------------------------------------------------------------------------
4040

41-
using RabbitMQ.Client.Exceptions;
42-
43-
namespace RabbitMQ.Client.Impl
41+
namespace RabbitMQ.Client.Exceptions
4442
{
4543
/// <summary> Instances of subclasses of subclasses
4644
/// HardProtocolException and SoftProtocolException are thrown in

projects/client/RabbitMQ.Client/src/client/impl/SoftProtocolException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
// Copyright (c) 2007-2020 VMware, Inc. All rights reserved.
3939
//---------------------------------------------------------------------------
4040

41-
namespace RabbitMQ.Client.Impl
41+
namespace RabbitMQ.Client.Exceptions
4242
{
4343
///<summary>Subclass of ProtocolException representing problems
4444
///requiring a channel.close.</summary>

projects/client/RabbitMQ.Client/src/client/impl/SyntaxError.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
using RabbitMQ.Client.Framing;
4242

43-
namespace RabbitMQ.Client.Impl
43+
namespace RabbitMQ.Client.Exceptions
4444
{
4545
/// <summary> Thrown when our peer sends a frame that contains
4646
/// illegal values for one or more fields. </summary>

projects/client/RabbitMQ.Client/src/client/impl/UnexpectedFrameException.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939
//---------------------------------------------------------------------------
4040

4141
using RabbitMQ.Client.Framing;
42+
using RabbitMQ.Client.Impl;
4243

43-
namespace RabbitMQ.Client.Impl
44+
namespace RabbitMQ.Client.Exceptions
4445
{
4546
/// <summary>
4647
/// Thrown when the connection receives a frame that it wasn't expecting.

projects/client/RabbitMQ.Client/src/client/impl/UnknownClassOrMethodException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
using RabbitMQ.Client.Framing;
4242

43-
namespace RabbitMQ.Client.Impl
43+
namespace RabbitMQ.Client.Exceptions
4444
{
4545
/// <summary>
4646
/// Thrown when the protocol handlers detect an unknown class

0 commit comments

Comments
 (0)