From b936f5e7f906f45ab635ad6e5c45cfec6726f716 Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Thu, 10 Nov 2016 10:07:59 -0800 Subject: Replace "throw new Exception" with throwException (consistency). --- chiselFrontend/src/main/scala/chisel3/internal/Builder.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chiselFrontend') diff --git a/chiselFrontend/src/main/scala/chisel3/internal/Builder.scala b/chiselFrontend/src/main/scala/chisel3/internal/Builder.scala index 32ba248c..381626c5 100644 --- a/chiselFrontend/src/main/scala/chisel3/internal/Builder.scala +++ b/chiselFrontend/src/main/scala/chisel3/internal/Builder.scala @@ -165,7 +165,7 @@ private[chisel3] object Builder { } def forcedModule: Module = currentModule match { case Some(module) => module - case None => throw new Exception( + case None => throwException( "Error: Not in a Module. Likely cause: Missed Module() wrap or bare chisel API call." // A bare api call is, e.g. calling Wire() from the scala console). ) -- cgit v1.2.3