Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- DoSomethingRisky();
- } catch (Exception ex) {
- if (ex.Message == "Customer cannot be null") {
- // Some specific logic goes here
- } else {
- // Another handler or rethrow
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement