Hello all, I'm playing around with adding an error code named parameter to Castle validator attributes. I'm doing this because:
1) When writing unit tests sometimes it seems ugly to match a string to find out what error was called. 2) If you are writing some code which needs to be reusable (eg it might be used in a batch process) then just setting an error message might not be what you need. The process might need to check the error code and then act accordingly (eg exit). 3) If you were being very picky you could argue that the domain layer should not be setting error messages anway. Would anyone be interested in this? If so any preference on error code type (ie, int, float, double). regards, Jordan. -- You received this message because you are subscribed to the Google Groups "Castle Project Development List" 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-devel?hl=en.
