org.specs2.execute.ResultStackTrace.scala Maven / Gradle / Ivy
The newest version!
package org.specs2
package execute
import control._
import Throwablex._
/**
* The stacktrace for a Result
*/
trait ResultStackTrace extends HasStackTrace {
/** @return the location (file and line number) of the topmost stackTraceElement */
def location = location(DefaultStackTraceFilter)
def location(filter: StackTraceFilter) = {
val filtered = Throwablex.exception(filter(stackTrace)).getStackTrace
Throwablex.exception(filtered).location
}
def exception: Throwable
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy