www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - class Exception

reply Steve Teale <steve.teale britseyeview.com> writes:
Another dumb question - where is class Exception defined/described?
Mar 18 2009
next sibling parent "Denis Koroskin" <2korden gmail.com> writes:
On Wed, 18 Mar 2009 17:01:25 +0300, Steve Teale <steve.teale britseyeview.com>
wrote:

 Another dumb question - where is class Exception defined/described?
dmd1\src\phobos\object.d dmd2\src\druntime\import\object.di
Mar 18 2009
prev sibling parent reply Steve Teale <steve.teale britseyeview.com> writes:
Denis Koroskin Wrote:

 On Wed, 18 Mar 2009 17:01:25 +0300, Steve Teale <steve.teale britseyeview.com>
wrote:
 
 Another dumb question - where is class Exception defined/described?
dmd1\src\phobos\object.d dmd2\src\druntime\import\object.di
Yes, eventually found it. Also dmd2, dmd\src\druntime\src\compiler\dmd\object_.d. I was looking because I remembered seeing once a distinction being made between class Exception, and class Error These seem to be defined identically - is one of them defunct?
Mar 18 2009
next sibling parent "Denis Koroskin" <2korden gmail.com> writes:
On Wed, 18 Mar 2009 17:30:07 +0300, Steve Teale <steve.teale britseyeview.com>
wrote:

 Denis Koroskin Wrote:

 On Wed, 18 Mar 2009 17:01:25 +0300, Steve Teale  
 <steve.teale britseyeview.com> wrote:

 Another dumb question - where is class Exception defined/described?
dmd1\src\phobos\object.d dmd2\src\druntime\import\object.di
Yes, eventually found it. Also dmd2, dmd\src\druntime\src\compiler\dmd\object_.d. I was looking because I remembered seeing once a distinction being made between class Exception, and class Error These seem to be defined identically - is one of them defunct?
I believe the former is automatically generated from the latter one.
Mar 18 2009
prev sibling parent Sean Kelly <sean invisibleduck.org> writes:
== Quote from Steve Teale (steve.teale britseyeview.com)'s article
 Denis Koroskin Wrote:
 On Wed, 18 Mar 2009 17:01:25 +0300, Steve Teale <steve.teale britseyeview.com>
wrote:

 Another dumb question - where is class Exception defined/described?
dmd1\src\phobos\object.d dmd2\src\druntime\import\object.di
Yes, eventually found it. Also dmd2, dmd\src\druntime\src\compiler\dmd\object_.d. I was looking
because I remembered seeing once a distinction being made between class Exception, and class Error
 These seem to be defined identically - is one of them defunct?
They're base classes for different categories of errors, somewhat like in Java. See core/exception.di for a run-down.
Mar 18 2009