TracedException - exception with stacktrace information
Thomas Kuehne
thomas-dloop at kuehne.cn
Fri Jan 26 11:07:17 PST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Flectioned now includes a TracedException class that provides stack
trace information.
sample:
# import cn.kuehne.flectioned;
#
# class MyException : TracedException{
# this(char[] message){
# super(message);
# }
# }
#
# void foo(int i){
# if(i > 0) {
# foo(i - 1);
# } else {
# throw new MyException("message");
# }
# }
#
# void main(){
# foo(2);
# }
# Error: (sample.MyException) message
# 0xFC8967F0 0x804F612 void sample.foo(int)
# 0xFC8967F8 0x804F5F1 void sample.foo(int)
# 0xFC896800 0x804F5F1 void sample.foo(int)
# 0xFC896808 0x804F629 int main(char[][])
# 0xFC896838 0x8050E7F extern(C) int main(int, char**)
Flectioned:
http://flectioned.kuehne.cn
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFul13LK5blCcjpWoRAsAoAJ9ik6JRMk+Poa+GJIgkbXl+GZcNFQCgnKuY
3muZaqbVNObzM06Vt0mn2O8=
=mBwf
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-announce
mailing list