Index: compiler/java/com/google/dart/compiler/ErrorCode.java |
diff --git a/compiler/java/com/google/dart/compiler/ErrorCode.java b/compiler/java/com/google/dart/compiler/ErrorCode.java |
index 0b17865ec75b9297349fab0c5489f66b566507b2..4305b82f41ab6ee9dff8fd74cf7a4771be94a4fe 100644 |
--- a/compiler/java/com/google/dart/compiler/ErrorCode.java |
+++ b/compiler/java/com/google/dart/compiler/ErrorCode.java |
@@ -1,7 +1,6 @@ |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
- |
package com.google.dart.compiler; |
/** |
@@ -13,4 +12,14 @@ public interface ErrorCode { |
* Return the message template used to create the message to be displayed for this error. |
*/ |
String getMessage(); |
+ |
+ /** |
+ * @return the {@link ErrorSeverity} of this error. |
+ */ |
+ ErrorSeverity getErrorSeverity(); |
+ |
+ /** |
+ * @return the {@link SubSystem} which issued this error. |
+ */ |
+ SubSystem getSubSystem(); |
} |