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

package chisel.compatibility

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