File tree Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
using System ;
11
+ using System . Runtime . Serialization ;
11
12
12
13
namespace React . Exceptions
13
14
{
14
15
/// <summary>
15
16
/// Thrown when an error occurs with parsing JSX.
16
17
/// </summary>
18
+ [ Serializable ]
17
19
public class JsxException : ReactException
18
20
{
19
21
/// <summary>
@@ -28,5 +30,11 @@ public JsxException(string message) : base(message) { }
28
30
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
29
31
public JsxException ( string message , Exception innerException )
30
32
: base ( message , innerException ) { }
33
+
34
+ /// <summary>
35
+ /// Used by deserialization
36
+ /// </summary>
37
+ protected JsxException ( SerializationInfo info , StreamingContext context )
38
+ : base ( info , context ) { }
31
39
}
32
40
}
Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
using System ;
11
+ using System . Runtime . Serialization ;
11
12
12
13
namespace React . Exceptions
13
14
{
14
15
/// <summary>
15
16
/// Thrown when an error occurs while reading a site configuration file.
16
17
/// </summary>
18
+ [ Serializable ]
17
19
public class ReactConfigurationException : ReactException
18
20
{
19
21
/// <summary>
@@ -28,5 +30,10 @@ public ReactConfigurationException(string message) : base(message) { }
28
30
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
29
31
public ReactConfigurationException ( string message , Exception innerException )
30
32
: base ( message , innerException ) { }
33
+ /// <summary>
34
+ /// Used by deserialization
35
+ /// </summary>
36
+ protected ReactConfigurationException ( SerializationInfo info , StreamingContext context )
37
+ : base ( info , context ) { }
31
38
}
32
39
}
Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
using System ;
11
+ using System . Runtime . Serialization ;
11
12
12
13
namespace React . Exceptions
13
14
{
14
15
/// <summary>
15
16
/// Base class for all ReactJS.NET exceptions
16
17
/// </summary>
18
+ [ Serializable ]
17
19
public class ReactException : Exception
18
20
{
19
21
/// <summary>
@@ -32,5 +34,11 @@ public ReactException(string message) : base(message) { }
32
34
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
33
35
public ReactException ( string message , Exception innerException )
34
36
: base ( message , innerException ) { }
37
+ /// <summary>
38
+ /// Used by deserialization
39
+ /// </summary>
40
+ protected ReactException ( SerializationInfo info , StreamingContext context )
41
+ : base ( info , context )
42
+ { }
35
43
}
36
44
}
Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
using System ;
11
+ using System . Runtime . Serialization ;
11
12
12
13
namespace React . Exceptions
13
14
{
14
15
/// <summary>
15
16
/// Thrown when a non-existent component is rendered.
16
17
/// </summary>
18
+ [ Serializable ]
17
19
public class ReactInvalidComponentException : ReactException
18
20
{
19
21
/// <summary>
@@ -28,5 +30,10 @@ public ReactInvalidComponentException(string message) : base(message) { }
28
30
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
29
31
public ReactInvalidComponentException ( string message , Exception innerException )
30
32
: base ( message , innerException ) { }
33
+ /// <summary>
34
+ /// Used by deserialization
35
+ /// </summary>
36
+ protected ReactInvalidComponentException ( SerializationInfo info , StreamingContext context )
37
+ : base ( info , context ) { }
31
38
}
32
39
}
You can’t perform that action at this time.
0 commit comments