diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/monitor/src/main/java')
-rw-r--r-- | sca-java-2.x/trunk/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java b/sca-java-2.x/trunk/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java index 3eda98ee23..eca0b9aba1 100644 --- a/sca-java-2.x/trunk/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java +++ b/sca-java-2.x/trunk/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java @@ -361,4 +361,18 @@ public abstract class Monitor { reset(); } } + + public boolean isErrorDetected() { + + boolean errorDetected = false; + + for (Problem problem : getProblems()) { + if ((problem.getSeverity() == Severity.ERROR)) { + errorDetected = true; + break; + } + } + + return errorDetected; + } } |