Thread overview | |||||
---|---|---|---|---|---|
|
March 18, 2009 Re: class Exception | ||||
---|---|---|---|---|
| ||||
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? |
March 18, 2009 Re: class Exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Teale | 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.
|
March 19, 2009 Re: class Exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Teale | == 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. |
Copyright © 1999-2021 by the D Language Foundation