Results 1 to 3 of 3

Thread: Creating your own Exception subclass - why?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Creating your own Exception subclass - why?

    Anyone have a good reason why you would create your own classes of exceptions? My gut feeling is that this is a good thing to do but books don't offer much advice?

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    ive been thinkin of that but it looks like it gives a LOT of work =\

  3. #3
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Well, when you create your own custom classes you may want to throw your own app specific exceptions. For example, to enforce business rules.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width