User: xtoff
Date: 2009/12/17 11:42 AM
Modified:
/InversionOfControl/trunk/src/Castle.MicroKernel/ComponentActivator/
ComponentActivatorException.cs
/InversionOfControl/trunk/src/Castle.MicroKernel/Exceptions/
ComponentNotFoundException.cs, ComponentRegistrationException.cs,
KernelException.cs
/InversionOfControl/trunk/src/Castle.MicroKernel/Facilities/
FacilityException.cs
/InversionOfControl/trunk/src/Castle.MicroKernel/Handlers/
HandlerException.cs
/InversionOfControl/trunk/src/Castle.MicroKernel/Lifestyle/Pool/
PoolException.cs
/InversionOfControl/trunk/src/Castle.MicroKernel/Resolvers/
DependencyResolverException.cs
/InversionOfControl/trunk/src/Castle.MicroKernel/SubSystems/Conversion/
ConverterException.cs
/InversionOfControl/trunk/src/Castle.MicroKernel/SubSystems/Conversion/Converters/
ListConverter.cs
/InversionOfControl/trunk/src/Castle.Windsor/Proxy/
AbstractProxyFactory.cs
Log:
- BREAKING CHANGE - applied patch from Simon Cropp for - IOC-ISSUE-175 - Dont
inherit from ApplicationException
This is a minor breaking change, can break scenarios when someone catches
ApplicationException instead of Castle specific Exceptions types that used to
inherit from it.
File Changes:
Directory: /InversionOfControl/trunk/src/Castle.MicroKernel/ComponentActivator/
===============================================================================
File [modified]: ComponentActivatorException.cs
Delta lines: +1 -1
===================================================================
---
InversionOfControl/trunk/src/Castle.MicroKernel/Exceptions/ComponentNotFoundException.cs
2009-12-17 17:51:04 UTC (rev 6442)
+++
InversionOfControl/trunk/src/Castle.MicroKernel/Exceptions/ComponentNotFoundException.cs
2009-12-17 18:42:17 UTC (rev 6443)
@@ -23,7 +23,7 @@
/// exist in the container
/// </summary>
[Serializable]
- public class ComponentNotFoundException : ApplicationException
+ public class ComponentNotFoundException : Exception
{
/// <summary>
Directory:
/InversionOfControl/trunk/src/Castle.MicroKernel/SubSystems/Conversion/
==================================================================================
File [modified]: ConverterException.cs
Delta lines: +1 -1
===================================================================
---
InversionOfControl/trunk/src/Castle.MicroKernel/SubSystems/Conversion/Converters/ListConverter.cs
2009-12-17 17:51:04 UTC (rev 6442)
+++
InversionOfControl/trunk/src/Castle.MicroKernel/SubSystems/Conversion/Converters/ListConverter.cs
2009-12-17 18:42:17 UTC (rev 6443)
@@ -33,7 +33,7 @@
public override bool CanHandleType(Type type)
{
#if(SILVERLIGHT)
- return (type == typeof(IList);
+ return (type == typeof(IList));
#else
return (type == typeof(IList) || type == typeof(ArrayList));
Directory:
/InversionOfControl/trunk/src/Castle.MicroKernel/SubSystems/Conversion/Converters/
=============================================================================================
File [modified]: ListConverter.cs
Delta lines: +3 -5
===================================================================
--- InversionOfControl/trunk/src/Castle.Windsor/Proxy/AbstractProxyFactory.cs
2009-12-17 17:51:04 UTC (rev 6442)
+++ InversionOfControl/trunk/src/Castle.Windsor/Proxy/AbstractProxyFactory.cs
2009-12-17 18:42:17 UTC (rev 6443)
@@ -16,7 +16,6 @@
{
using System;
using System.Collections.Generic;
- using System.Runtime.InteropServices.ComTypes;
using Castle.Core;
using Castle.Core.Interceptor;
using Castle.MicroKernel;
@@ -75,7 +74,7 @@
{
// This shoul be virtually impossible
to happen
// Seriously!
- throw new ApplicationException("The
interceptor could not be resolved");
+ throw new Exception("The interceptor
could not be resolved");
}
try
@@ -89,11 +88,10 @@
catch(InvalidCastException)
{
String message = String.Format(
- "An interceptor registered for
{0} doesnt implement " +
- "the IInterceptor interface",
+ "An interceptor registered for
{0} doesnt implement the IInterceptor interface",
model.Name);
- throw new ApplicationException(message);
+ throw new Exception(message);
}
}
Directory: /InversionOfControl/trunk/src/Castle.MicroKernel/Exceptions/
=======================================================================
File [modified]: ComponentNotFoundException.cs
Delta lines: +1 -1
===================================================================
---
InversionOfControl/trunk/src/Castle.MicroKernel/Exceptions/ComponentRegistrationException.cs
2009-12-17 17:51:04 UTC (rev 6442)
+++
InversionOfControl/trunk/src/Castle.MicroKernel/Exceptions/ComponentRegistrationException.cs
2009-12-17 18:42:17 UTC (rev 6443)
@@ -22,7 +22,7 @@
/// registering a component
/// </summary>
[Serializable]
- public class ComponentRegistrationException : ApplicationException
+ public class ComponentRegistrationException : Exception
{
/// <summary>
File [modified]: ComponentRegistrationException.cs
Delta lines: +1 -1
===================================================================
---
InversionOfControl/trunk/src/Castle.MicroKernel/Exceptions/KernelException.cs
2009-12-17 17:51:04 UTC (rev 6442)
+++
InversionOfControl/trunk/src/Castle.MicroKernel/Exceptions/KernelException.cs
2009-12-17 18:42:17 UTC (rev 6443)
@@ -22,7 +22,7 @@
/// for some reason.
/// </summary>
[Serializable]
- public class KernelException : ApplicationException
+ public class KernelException : Exception
{
/// <summary>
File [modified]: KernelException.cs
Delta lines: +1 -1
===================================================================
---
InversionOfControl/trunk/src/Castle.MicroKernel/Facilities/FacilityException.cs
2009-12-17 17:51:04 UTC (rev 6442)
+++
InversionOfControl/trunk/src/Castle.MicroKernel/Facilities/FacilityException.cs
2009-12-17 18:42:17 UTC (rev 6443)
@@ -21,7 +21,7 @@
/// Base exception to be used by facilities.
/// </summary>
[Serializable]
- public class FacilityException : ApplicationException
+ public class FacilityException : Exception
{
public FacilityException(string message) : base(message)
Directory: /InversionOfControl/trunk/src/Castle.MicroKernel/Facilities/
=======================================================================
File [modified]: FacilityException.cs
Delta lines: +1 -1
===================================================================
---
InversionOfControl/trunk/src/Castle.MicroKernel/Handlers/HandlerException.cs
2009-12-17 17:51:04 UTC (rev 6442)
+++
InversionOfControl/trunk/src/Castle.MicroKernel/Handlers/HandlerException.cs
2009-12-17 18:42:17 UTC (rev 6443)
@@ -21,7 +21,7 @@
/// Summary description for HandlerException.
/// </summary>
[Serializable]
- public class HandlerException : ApplicationException
+ public class HandlerException : Exception
{
/// <summary>
Directory: /InversionOfControl/trunk/src/Castle.MicroKernel/Handlers/
=====================================================================
File [modified]: HandlerException.cs
Delta lines: +1 -1
===================================================================
---
InversionOfControl/trunk/src/Castle.MicroKernel/Lifestyle/Pool/PoolException.cs
2009-12-17 17:51:04 UTC (rev 6442)
+++
InversionOfControl/trunk/src/Castle.MicroKernel/Lifestyle/Pool/PoolException.cs
2009-12-17 18:42:17 UTC (rev 6443)
@@ -18,7 +18,7 @@
using System.Runtime.Serialization;
[Serializable]
- public class PoolException : ApplicationException
+ public class PoolException : Exception
{
public PoolException(string message) : base(message)
Directory: /InversionOfControl/trunk/src/Castle.MicroKernel/Lifestyle/Pool/
===========================================================================
File [modified]: PoolException.cs
Delta lines: +1 -1
===================================================================
---
InversionOfControl/trunk/src/Castle.MicroKernel/Resolvers/DependencyResolverException.cs
2009-12-17 17:51:04 UTC (rev 6442)
+++
InversionOfControl/trunk/src/Castle.MicroKernel/Resolvers/DependencyResolverException.cs
2009-12-17 18:42:17 UTC (rev 6443)
@@ -21,7 +21,7 @@
/// Summary description for DependencyResolverException.
/// </summary>
[Serializable]
- public class DependencyResolverException : ApplicationException
+ public class DependencyResolverException : Exception
{
/// <summary>
Directory: /InversionOfControl/trunk/src/Castle.Windsor/Proxy/
==============================================================
File [modified]: AbstractProxyFactory.cs
Delta lines: +0 -0
===================================================================
Directory: /InversionOfControl/trunk/src/Castle.MicroKernel/Resolvers/
======================================================================
File [modified]: DependencyResolverException.cs
Delta lines: +1 -1
===================================================================
---
InversionOfControl/trunk/src/Castle.MicroKernel/SubSystems/Conversion/ConverterException.cs
2009-12-17 17:51:04 UTC (rev 6442)
+++
InversionOfControl/trunk/src/Castle.MicroKernel/SubSystems/Conversion/ConverterException.cs
2009-12-17 18:42:17 UTC (rev 6443)
@@ -21,7 +21,7 @@
/// Summary description for ConverterException.
/// </summary>
[Serializable]
- public class ConverterException : ApplicationException
+ public class ConverterException : Exception
{
/// <summary>
--
You received this message because you are subscribed to the Google Groups
"Castle Project Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-commits?hl=en.