Suha Can dbe908a717 Exception handling consolidation in command handlers.
Use Context.Output to write error messages when you handle an Exception or an error case. If you can't recover afterwards, just return.
Don't throw an exception from within the handler unless necessary.
-> If you want to throw due to an inner exception, throw an OrchardException. Add an error message and the exception as the innerexception of your OrchardException.
Your exception will be caught by the command executive, an error message will indicate which command failed, and the inner exceptions will be displayed.
Also, do not return values from commands, they are not services.

--HG--
branch : 1.x
extra : transplant_source : %5Ej%123%DA%E0%28%A7l%F5%F9%A4%B0z%05%EB%E4%21%FD%DC
2011-06-10 13:34:29 -07:00
2011-03-30 15:03:07 -07:00
2011-10-05 14:10:04 -07:00
2010-05-14 12:24:08 -07:00
2011-03-31 14:30:57 -07:00
2011-10-03 19:06:20 -07:00
Description
About Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform. orchardproject.net
253 MiB
Languages
C# 46.6%
JavaScript 41.2%
HTML 5.6%
CSS 3.3%
SCSS 1.1%
Other 2.1%