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).
- Custom default exception handler? Nick Sabalausky
- Re: Custom default exception handler? Adam D. Ruppe
- Re: Custom default exception handler? Nick Sabalausky
- Re: Custom default exception handler? Adam D. Ruppe
- Re: Custom default exception handler? Nick Sabalausky
- Re: Custom default exception handler? bearophile
- Re: Custom default exception handler... Adam D. Ruppe
- Re: Custom default exception handler? Jacob Carlborg
- Re: Custom default exception handler? Sean Kelly
- Re: Custom default exception handler... Nick Sabalausky
- Re: Custom default exception han... Sean Kelly
- Re: Custom default exception handler... Nick Sabalausky
- Re: Custom default exception han... Sean Kelly
- Re: Custom default exception handler... Nick Sabalausky
- Re: Custom default exception han... Sean Kelly
- Re: Custom default exception... Nick Sabalausky
- Re: Custom default exception... Sean Kelly
- Re: Custom default exception... Nick Sabalausky
- Re: Custom default exception... Nick Sabalausky