@@ -20,11 +20,11 @@ protected ElasticsearchAuthException(ElasticsearchResponse<Stream> response)
2020 }
2121
2222 [ SecurityPermission ( SecurityAction . Demand , SerializationFormatter = true ) ]
23- protected ElasticsearchAuthException ( SerializationInfo info , StreamingContext context ) : base ( info , context )
24- {
25- }
23+ protected ElasticsearchAuthException ( SerializationInfo info , StreamingContext context ) : base ( info , context )
24+ {
25+ }
2626
27- internal ElasticsearchServerException ToElasticsearchServerException ( ) =>
27+ internal ElasticsearchServerException ToElasticsearchServerException ( ) =>
2828 this . Response == null ? null : new ElasticsearchServerException ( this . StatusCode , this . ExceptionType ) ;
2929
3030
@@ -40,19 +40,19 @@ public ElasticsearchAuthorizationException(ElasticsearchResponse<Stream> respons
4040 protected override int StatusCode => 403 ;
4141
4242 [ SecurityPermission ( SecurityAction . Demand , SerializationFormatter = true ) ]
43- protected ElasticsearchAuthorizationException ( SerializationInfo info , StreamingContext context ) : base ( info , context )
44- {
45- }
43+ protected ElasticsearchAuthorizationException ( SerializationInfo info , StreamingContext context ) : base ( info , context )
44+ {
45+ }
4646
4747 [ SecurityPermissionAttribute ( SecurityAction . Demand , SerializationFormatter = true ) ]
48- public override void GetObjectData ( SerializationInfo info , StreamingContext context )
49- {
50- if ( info == null ) throw new ArgumentNullException ( nameof ( info ) ) ;
51-
52- info . AddValue ( "ExceptionType" , this . ExceptionType ) ;
53- info . AddValue ( "StatusCode" , this . StatusCode ) ;
54- base . GetObjectData ( info , context ) ;
55- }
48+ public override void GetObjectData ( SerializationInfo info , StreamingContext context )
49+ {
50+ if ( info == null ) throw new ArgumentNullException ( nameof ( info ) ) ;
51+
52+ info . AddValue ( "ExceptionType" , this . ExceptionType ) ;
53+ info . AddValue ( "StatusCode" , this . StatusCode ) ;
54+ base . GetObjectData ( info , context ) ;
55+ }
5656 }
5757
5858
@@ -66,19 +66,19 @@ public class ElasticsearchAuthenticationException : ElasticsearchAuthException
6666 public ElasticsearchAuthenticationException ( ElasticsearchResponse < Stream > response ) : base ( response ) { }
6767
6868 [ SecurityPermission ( SecurityAction . Demand , SerializationFormatter = true ) ]
69- protected ElasticsearchAuthenticationException ( SerializationInfo info , StreamingContext context ) : base ( info , context )
70- {
71- }
69+ protected ElasticsearchAuthenticationException ( SerializationInfo info , StreamingContext context ) : base ( info , context )
70+ {
71+ }
7272
7373 [ SecurityPermissionAttribute ( SecurityAction . Demand , SerializationFormatter = true ) ]
74- public override void GetObjectData ( SerializationInfo info , StreamingContext context )
75- {
76- if ( info == null ) throw new ArgumentNullException ( nameof ( info ) ) ;
77-
78- info . AddValue ( "ExceptionType" , this . ExceptionType ) ;
79- info . AddValue ( "StatusCode" , this . StatusCode ) ;
80- base . GetObjectData ( info , context ) ;
81- }
74+ public override void GetObjectData ( SerializationInfo info , StreamingContext context )
75+ {
76+ if ( info == null ) throw new ArgumentNullException ( nameof ( info ) ) ;
77+
78+ info . AddValue ( "ExceptionType" , this . ExceptionType ) ;
79+ info . AddValue ( "StatusCode" , this . StatusCode ) ;
80+ base . GetObjectData ( info , context ) ;
81+ }
8282
8383 }
8484}
0 commit comments