Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!amdcad!sun!pitstop!mutchler From: mutchler@pitstop.UUCP (Dan Mutchler) Newsgroups: comp.lang.c++ Subject: Errors in Constructors Message-ID: <383@pitstop.UUCP> Date: 30 Jan 89 19:38:49 GMT Reply-To: mutchler@sun.UUCP (Dan Mutchler) Distribution: comp.lang.c++ Organization: Sun Microsystems, Inc., Mountain View, CA. Lines: 18 I am fairly new to C++ so if this is incredibly obvious, forgive me. I am working on a project for my PC where I would like to treat things like windows as a class. I don't have a lot of trouble with that except how to handle an error situation in the constructor for the class. There are a few dependencies that may make creating an object illegal (i.e. invalid font type) and I would like to provide some way for the program creating the object to detect this and handle it appropriately. How can I go about doing this? If my philosphy is completely out of line here, then please point that out as well. Thanks Dan mutchler@sun.UUCP sun!zule!mutchler