@@ -688,18 +688,22 @@ namespace RabbitMQ.Client.Events
688
688
}
689
689
namespace RabbitMQ.Client.Exceptions
690
690
{
691
+ [System.Serializable]
691
692
public class AlreadyClosedException : RabbitMQ.Client.Exceptions.OperationInterruptedException
692
693
{
693
694
public AlreadyClosedException(RabbitMQ.Client.ShutdownEventArgs reason) { }
694
695
}
696
+ [System.Serializable]
695
697
public class AuthenticationFailureException : RabbitMQ.Client.Exceptions.PossibleAuthenticationFailureException
696
698
{
697
699
public AuthenticationFailureException(string msg) { }
698
700
}
701
+ [System.Serializable]
699
702
public class BrokerUnreachableException : System.IO.IOException
700
703
{
701
704
public BrokerUnreachableException(System.Exception Inner) { }
702
705
}
706
+ [System.Serializable]
703
707
public class ChannelAllocationException : RabbitMQ.Client.Exceptions.ProtocolViolationException
704
708
{
705
709
public ChannelAllocationException() { }
@@ -712,6 +716,7 @@ namespace RabbitMQ.Client.Exceptions
712
716
public int Channel { get; }
713
717
public override ushort ReplyCode { get; }
714
718
}
719
+ [System.Serializable]
715
720
public class ConnectFailureException : RabbitMQ.Client.Exceptions.ProtocolViolationException
716
721
{
717
722
public ConnectFailureException(string msg, System.Exception inner) { }
@@ -725,6 +730,7 @@ namespace RabbitMQ.Client.Exceptions
725
730
public MalformedFrameException(string message) { }
726
731
public override ushort ReplyCode { get; }
727
732
}
733
+ [System.Serializable]
728
734
public class OperationInterruptedException : RabbitMQ.Client.Exceptions.RabbitMQClientException
729
735
{
730
736
protected OperationInterruptedException() { }
@@ -734,6 +740,7 @@ namespace RabbitMQ.Client.Exceptions
734
740
protected OperationInterruptedException(string message, System.Exception inner) { }
735
741
public RabbitMQ.Client.ShutdownEventArgs ShutdownReason { get; set; }
736
742
}
743
+ [System.Serializable]
737
744
public class PacketNotRecognizedException : RabbitMQ.Client.Exceptions.RabbitMQClientException
738
745
{
739
746
public PacketNotRecognizedException(int transportHigh, int transportLow, int serverMajor, int serverMinor) { }
@@ -742,6 +749,7 @@ namespace RabbitMQ.Client.Exceptions
742
749
public int TransportHigh { get; }
743
750
public int TransportLow { get; }
744
751
}
752
+ [System.Serializable]
745
753
public class PossibleAuthenticationFailureException : RabbitMQ.Client.Exceptions.RabbitMQClientException
746
754
{
747
755
public PossibleAuthenticationFailureException(string msg) { }
@@ -753,6 +761,7 @@ namespace RabbitMQ.Client.Exceptions
753
761
public abstract ushort ReplyCode { get; }
754
762
public virtual RabbitMQ.Client.ShutdownEventArgs ShutdownReason { get; }
755
763
}
764
+ [System.Serializable]
756
765
public class ProtocolVersionMismatchException : RabbitMQ.Client.Exceptions.ProtocolViolationException
757
766
{
758
767
public ProtocolVersionMismatchException(int clientMajor, int clientMinor, int serverMajor, int serverMinor) { }
@@ -761,12 +770,14 @@ namespace RabbitMQ.Client.Exceptions
761
770
public int ServerMajor { get; }
762
771
public int ServerMinor { get; }
763
772
}
773
+ [System.Serializable]
764
774
public class ProtocolViolationException : RabbitMQ.Client.Exceptions.RabbitMQClientException
765
775
{
766
776
public ProtocolViolationException() { }
767
777
public ProtocolViolationException(string message) { }
768
778
public ProtocolViolationException(string message, System.Exception inner) { }
769
779
}
780
+ [System.Serializable]
770
781
public abstract class RabbitMQClientException : System.Exception
771
782
{
772
783
protected RabbitMQClientException() { }
@@ -791,6 +802,7 @@ namespace RabbitMQ.Client.Exceptions
791
802
{
792
803
public override ushort ReplyCode { get; }
793
804
}
805
+ [System.Serializable]
794
806
public class UnexpectedMethodException : RabbitMQ.Client.Exceptions.ProtocolViolationException
795
807
{
796
808
public UnexpectedMethodException(RabbitMQ.Client.IMethod method) { }
@@ -804,17 +816,20 @@ namespace RabbitMQ.Client.Exceptions
804
816
public override ushort ReplyCode { get; }
805
817
public override string ToString() { }
806
818
}
819
+ [System.Serializable]
807
820
public class UnsupportedMethodException : System.NotSupportedException
808
821
{
809
822
public UnsupportedMethodException(string methodName) { }
810
823
public string MethodName { get; }
811
824
}
825
+ [System.Serializable]
812
826
public class UnsupportedMethodFieldException : System.NotSupportedException
813
827
{
814
828
public UnsupportedMethodFieldException(string methodName, string fieldName) { }
815
829
public string FieldName { get; }
816
830
public string MethodName { get; }
817
831
}
832
+ [System.Serializable]
818
833
public class WireFormattingException : RabbitMQ.Client.Exceptions.ProtocolViolationException
819
834
{
820
835
public WireFormattingException(string message) { }
0 commit comments