Stop marking exceptions as Serializable - it's not needed

This commit is contained in:
Antony Male 2014-12-04 13:34:20 +00:00
parent a48eda896f
commit 91eab0958f
2 changed files with 2 additions and 5 deletions

View File

@ -5,7 +5,7 @@ namespace StyletIoC
/// <summary>
/// Base class for all exceptions describing StyletIoC-specific problems?
/// </summary>
[Serializable]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable")]
public abstract class StyletIoCException : Exception
{
internal StyletIoCException(string message) : base(message) { }
@ -15,7 +15,6 @@ namespace StyletIoC
/// <summary>
/// A problem occured with a registration process (failed to register, failed to find a registration, etc)
/// </summary>
[Serializable]
public class StyletIoCRegistrationException : StyletIoCException
{
internal StyletIoCRegistrationException(string message) : base(message) { }
@ -25,7 +24,6 @@ namespace StyletIoC
/// <summary>
/// StyletIoC was unable to find a callable constructor for a type
/// </summary>
[Serializable]
public class StyletIoCFindConstructorException : StyletIoCException
{
internal StyletIoCFindConstructorException(string message) : base(message) { }
@ -34,7 +32,6 @@ namespace StyletIoC
/// <summary>
/// StyletIoC was unable to create an abstract factory
/// </summary>
[Serializable]
public class StyletIoCCreateFactoryException : StyletIoCException
{
internal StyletIoCCreateFactoryException(string message) : base(message) { }

View File

@ -214,7 +214,7 @@ namespace Stylet
/// <summary>
/// Exception raised while attempting to locate a View for a ViewModel
/// </summary>
[Serializable]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable")]
public class StyletViewLocationException : Exception
{
/// <summary>