- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
filling in stack traces
Wed, 2009-07-15, 14:30
What do you think about ControlException overriding fillInStackTrace()
like most of its users already do and all probably (?) should?
Wed, 2009-07-15, 14:47
#2
Re: filling in stack traces
2009/7/15 Paul Phillips :
> What do you think about ControlException overriding fillInStackTrace()
> like most of its users already do and all probably (?) should?
One option which I favour is to have something like the following:
object ControlException{
var debugStackTraces = System.getProperty("some.property");
}
trait ControlException extends Throwable{
override def fillInStackTraces =
if(ControlException.debugStackTraces) super.fillInStackTrace else
this;
}
Wed, 2009-07-15, 15:17
#3
Re: filling in stack traces
On Wed, Jul 15, 2009 at 2:29 PM, Paul Phillips wrote:
> What do you think about ControlException overriding fillInStackTrace()
> like most of its users already do and all probably (?) should?
Yes, that sounds quite plausible.
Cheers,
Miles
But unless there's some need to make it final, I'd like something that I can override to put stack traces back in temporarily for debugging purposes.
On Wed, Jul 15, 2009 at 9:29 AM, Paul Phillips <paulp@improving.org> wrote:
--
http://erikengbrecht.blogspot.com/