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

package Chisel

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