aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/options/Exceptions.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/firrtl/options/Exceptions.scala')
-rw-r--r--src/main/scala/firrtl/options/Exceptions.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/options/Exceptions.scala b/src/main/scala/firrtl/options/Exceptions.scala
index 100ff464..38b2f2e2 100644
--- a/src/main/scala/firrtl/options/Exceptions.scala
+++ b/src/main/scala/firrtl/options/Exceptions.scala
@@ -18,3 +18,6 @@ class OptionsException(val message: String, cause: Throwable = null) extends Ill
* out of order or if the compiler did not run things in the correct order.
*/
class PhasePrerequisiteException(message: String, cause: Throwable = null) extends PhaseException(message, cause)
+
+/** Indicates that a [[Stage]] or [[Phase]] has run into a situation where it cannot continue. */
+final class StageError(val code: ExitFailure = GeneralError, cause: Throwable = null) extends Error("", cause)