Results 1 to 4 of 4

Thread: Which is efficient

  1. #1
    Contributing Member
    Join Date
    Jul 2006
    Answers
    57

    Question Which is efficient

    When I was coding my application in ASP.NET I got a query namely is it efficient and best to use error handling techniques explicitly by using user defined error handling methods or functions or is it best and efficient top use system define error messages? Kindly suggest me the best of the two and also state me the reason for that.


  2. #2
    Contributing Member
    Join Date
    Jul 2006
    Answers
    63

    Re: Which is efficient

    I would suggest that the efficient way is to use error handling techniques explicitly by using user defined error handling methods.There are many reasons for this. One of the vital reason is by this it would be possible for the user or the programmer to define error messages user-friendly in a descriptive manner.


  3. #3
    Junior Member
    Join Date
    Feb 2007
    Answers
    4

    Re: Which is efficient

    From end user perspective, its always better that we(pgmers) explicitly handle the exceptions with user defined codes and descriptions. Eg: .net exception-messages like "divide by zero error" or "object reference not set to instance of an object" or "file not found errors" are too techie to present them to the end user.


  4. #4
    Junior Member
    Join Date
    Feb 2007
    Answers
    4

    Re: Which is efficient

    From End users perspective, its better that we handle the Exceptions explicitly, with user defined error codes and descriptions.
    Because, .Net exception messages like
    "Divide by Zero Error",
    "Object reference not set to instance of an Object" ,
    "File not found error"
    etc
    - are too techinical for an end user to understand.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact