summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/throwException.scala
blob: 1932bec80348a3f4b0d45d67da52f30fb6ffa823 (plain)
1
2
3
4
5
6
7
8
9
10
11
// See LICENSE for license details.

package Chisel

@deprecated("throwException doesn't exist in Chisel3", "3.0.0")
object throwException {
  def apply(s: String, t: Throwable = null) = {
    val xcpt = new Exception(s, t)
    throw xcpt
  }
}