www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Exception: constructor arguments?

reply mimocrocodil <4denizzz gmail.com> writes:
Where I can find description of Exception class?

I seen this URLs, but they do not contain this information:

http://www.d-programming-language.org/phobos/std_exception.html
http://www.d-programming-language.org/phobos/core_exception.html
http://www.d-programming-language.org/errors.html
Aug 14 2011
parent Johannes Pfau <spam example.com> writes:
mimocrocodil wrote:
Where I can find description of Exception class?

I seen this URLs, but they do not contain this information:

http://www.d-programming-language.org/phobos/std_exception.html
http://www.d-programming-language.org/phobos/core_exception.html
http://www.d-programming-language.org/errors.html

The Exception class is defined in druntime's object.d (as object.d is automatically imported). The API documentation for object is here: http://www.d-programming-language.org/phobos/object.html I think there's no link for it in the side-bar. I found it by guessing :-) However, there's almost no documentation for Throwable and Exception, so you may want to have a look at the source code: Throwable: https://github.com/D-Programming-Language/druntime/blob/master/src/object_.d#L1225 Exception: https://github.com/D-Programming-Language/druntime/blob/master/src/object_.d#L1328 -- Johannes Pfau
Aug 14 2011