diff options
| author | Richard Lin | 2016-06-08 17:12:42 -0700 |
|---|---|---|
| committer | Richard Lin | 2016-06-08 17:12:42 -0700 |
| commit | 07fa5622ccc995f925d6d967d2a386540c9064cc (patch) | |
| tree | fab4d62dba2ffb78e673ee54939d9088739a79f1 /src/main/scala/chisel/compatibility/throwException.scala | |
| parent | 53813f61b7dfe246d214ab966739d01c65c8ecb0 (diff) | |
| parent | 68447044e8eba5c8f525639130f1a347677ff543 (diff) | |
Merge pull request #197 from ucb-bar/lowercaseChisel
Rename package Chisel to chisel, add Chisel package for compatibility
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 + } +} |
