diff options
| author | ducky | 2016-06-01 12:17:25 -0700 |
|---|---|---|
| committer | ducky | 2016-06-08 16:22:27 -0700 |
| commit | 66301b9042530a5265c18c97a0dab9022a0efc50 (patch) | |
| tree | d841f99a375ca7b96297c9d7737e519fd83bf517 /src/main/scala/chisel/compatibility/throwException.scala | |
| parent | 881ac3cb3a9da0c7827a161238468df4727996f0 (diff) | |
Move chisel/... to chisel/core/..., make chisel/compatibility package/folder, move more things into utils
Diffstat (limited to 'src/main/scala/chisel/compatibility/throwException.scala')
| -rw-r--r-- | src/main/scala/chisel/compatibility/throwException.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/scala/chisel/compatibility/throwException.scala b/src/main/scala/chisel/compatibility/throwException.scala new file mode 100644 index 00000000..3b9fd06e --- /dev/null +++ b/src/main/scala/chisel/compatibility/throwException.scala @@ -0,0 +1,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 + } +} |
