diff options
| author | chick | 2020-08-14 19:47:53 -0700 |
|---|---|---|
| committer | Jack Koenig | 2020-08-14 19:47:53 -0700 |
| commit | 6fc742bfaf5ee508a34189400a1a7dbffe3f1cac (patch) | |
| tree | 2ed103ee80b0fba613c88a66af854ae9952610ce /src/main/scala/firrtl/FirrtlException.scala | |
| parent | b516293f703c4de86397862fee1897aded2ae140 (diff) | |
All of src/ formatted with scalafmt
Diffstat (limited to 'src/main/scala/firrtl/FirrtlException.scala')
| -rw-r--r-- | src/main/scala/firrtl/FirrtlException.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/FirrtlException.scala b/src/main/scala/firrtl/FirrtlException.scala index 20d984a1..6f98fda3 100644 --- a/src/main/scala/firrtl/FirrtlException.scala +++ b/src/main/scala/firrtl/FirrtlException.scala @@ -18,7 +18,7 @@ object FIRRTLException { } @deprecated("External users should use either FirrtlUserException or their own hierarchy", "1.2") class FIRRTLException(val str: String, cause: Throwable = null) - extends RuntimeException(FIRRTLException.defaultMessage(str, cause), cause) + extends RuntimeException(FIRRTLException.defaultMessage(str, cause), cause) /** Exception indicating user error * @@ -26,7 +26,8 @@ class FIRRTLException(val str: String, cause: Throwable = null) * This can be extended by custom transform writers. */ class FirrtlUserException(message: String, cause: Throwable = null) - extends RuntimeException(message, cause) with NoStackTrace + extends RuntimeException(message, cause) + with NoStackTrace /** Wraps exceptions from CustomTransforms so they can be reported appropriately */ case class CustomTransformException(cause: Throwable) extends Exception("", cause) @@ -40,4 +41,4 @@ case class CustomTransformException(cause: Throwable) extends Exception("", caus * transforms are treated differently and should thus have their own structure */ private[firrtl] class FirrtlInternalException(message: String, cause: Throwable = null) - extends Exception(message, cause) + extends Exception(message, cause) |
