Custom default exception handler?

Sean Kelly sean at invisibleduck.org
Tue Feb 11 15:35:58 PST 2014


Throw a static exception (maybe even derived directly from 
Throwable), similar to OutOfMemory, with a custom toString.  That 
should eliminate the formatting you don't like and will prevent 
the trace from occurring as well (see rt/deh.d in Druntime--the 
trace isn't run if you throw typeid(t).init.ptr).


More information about the Digitalmars-d-learn mailing list