All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.specs2.execute.ResultStackTrace.scala Maven / Gradle / Ivy

There is a newer version: 3.7
Show 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 - 2024 Weber Informatics LLC | Privacy Policy