Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Custom exception handling in asp.net

Custom exception handling in asp.net

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpcssasp-nethelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    krishsenthilraj
    wrote on last edited by
    #1

    hi all, I am developing a web application using asp.net(vb). I need to handle the custom exceptions. i have created a custom exception class which inherits the properties of Application Exception. i need to display a custom error to the end user using that class by catching the exception. For Example: i have a function which checks for the input value if that value is less than the expected value i have to catch it as an exception and displays a user friendly message through my custom exception class . how to do it??? give me some sample code if Possible......... thank u all...... Regards Krishsenthilraj

    R 1 Reply Last reply
    0
    • K krishsenthilraj

      hi all, I am developing a web application using asp.net(vb). I need to handle the custom exceptions. i have created a custom exception class which inherits the properties of Application Exception. i need to display a custom error to the end user using that class by catching the exception. For Example: i have a function which checks for the input value if that value is less than the expected value i have to catch it as an exception and displays a user friendly message through my custom exception class . how to do it??? give me some sample code if Possible......... thank u all...... Regards Krishsenthilraj

      R Offline
      R Offline
      Rahul Goel
      wrote on last edited by
      #2

      Hi Krishsenthilraj, you can user Enterprise library provided by microsoft. and second option is to handle and exception and write a logger for it and then redirect to one common page which will display an user friendly error messsage to the user. In case of any futher help let me know

      Rahul Goel Microsoft Cerfied Solution Developer .Net Contact me at : rahul.g2510@gmail.com

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups