summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel3/compatibility/throwException.scala
blob: 3e8b33e6c796bd9e43e6bee383ba939f6d3a4dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// See LICENSE for license details.

package chisel3.compatibility

import chisel3._

@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
  }
}