>Create a custom error and throw it.
>
>Return a void. If an error isn't thrown, it was successful. Or, return an enum.
>
>>In the code we do have try / catch. In the catch section we set status code and message to return. The question is - how the caller should know if the command was successful or not? We don't want to pass the exception all the way up.
If I created an application class and, suppose, I create a method there to handle errors, how can I ensure that all errors encountered in my whole application will be handled by that class?
Thanks again.
If it's not broken, fix it until it is.
My Blog