Files
Orchard/src
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-10-03 11:19:57 -07:00
2011-10-03 11:19:57 -07:00
2011-10-03 11:19:57 -07:00
2011-10-03 11:19:57 -07:00
2011-10-03 11:19:57 -07:00
2011-10-05 14:10:04 -07:00
2010-11-24 16:18:02 -08:00