c# - Handling error messages as exceptions -
can throw exception in 1 class , can catch exceptions in separate exception class in c#?
now question when ever values == null displaying message there itself. have use exceptions if values equal null. can throw exception like
if(customer == null) throw new customernullexception(); if(incometype == null) throw new incometypenullexception();
now can handle these exceptions in separate class??
exceptions bad idea handling errors. should rethink error handling architecture exceptions have huge overhead. please read exceptions , performance jon skeet.
Comments
Post a Comment