1
1
using System ;
2
+ using System . Runtime . Serialization ;
2
3
3
4
namespace EasyNetQ
4
5
{
6
+ [ Serializable ]
5
7
public class EasyNetQException : Exception
6
8
{
7
- public EasyNetQException ( ) { }
8
- public EasyNetQException ( string message ) : base ( message ) { }
9
- public EasyNetQException ( string format , params string [ ] args ) : base ( string . Format ( format , args ) ) { }
10
- public EasyNetQException ( string message , Exception inner ) : base ( message , inner ) { }
9
+ public EasyNetQException ( ) { }
10
+ public EasyNetQException ( string message ) : base ( message ) { }
11
+ public EasyNetQException ( string format , params object [ ] args ) : base ( string . Format ( format , args ) ) { }
12
+ public EasyNetQException ( string message , Exception inner ) : base ( message , inner ) { }
13
+ protected EasyNetQException ( SerializationInfo info , StreamingContext context ) : base ( info , context ) { }
11
14
}
12
15
16
+ [ Serializable ]
13
17
public class EasyNetQResponderException : EasyNetQException
14
18
{
15
19
public EasyNetQResponderException ( ) { }
16
20
public EasyNetQResponderException ( string message ) : base ( message ) { }
17
- public EasyNetQResponderException ( string format , params string [ ] args ) : base ( format , args ) { }
21
+ public EasyNetQResponderException ( string format , params object [ ] args ) : base ( format , args ) { }
18
22
public EasyNetQResponderException ( string message , Exception inner ) : base ( message , inner ) { }
23
+ protected EasyNetQResponderException ( SerializationInfo info , StreamingContext context ) : base ( info , context ) { }
19
24
}
20
- }
25
+ }
0 commit comments