private void HandleExceptionEvent(object obj, IExceptionEvent aException) { if (aException.Priority >= errorLevel) { Console.Error.WriteLine("NxBRE ERROR " + aException.Priority + ": " + aException.Exception.ToString()); } }
private void HandleExceptionEvent(object obj, IExceptionEvent aException) { // whatever is the exception hit, the process is stoped and an exception is thrown // because the inference engine does not tolerate exceptions. working_bre.Stop(); throw aException.Exception; }
public void handleExceptionEvent(object obj, IExceptionEvent aException) { exceptionCount++; Console.Error.WriteLine("NxBRE ERROR " + aException.Priority + ": " + aException.Exception.ToString()); // Try to catch a dynamically generated exception if ((aException.Priority == ExceptionEventImpl.ERROR) && (aException.Exception.Message == ASSERTED_HELLO_VALUE)) { foundDynamicException = true; } // Stop rule processing on fatal exceptions if (aException.Priority == ExceptionEventImpl.FATAL) { bre.Stop(); } }
public void handleExceptionEvent(object obj, IExceptionEvent aException) { exceptionCount++; Console.Error.WriteLine("NxBRE ERROR " + aException.Priority + ": " + aException.Exception.ToString()); // Try to catch a dynamically generated exception if ((aException.Priority == ExceptionEventImpl.ERROR) && (aException.Exception.Message == ASSERTED_HELLO_VALUE)) foundDynamicException = true; // Stop rule processing on fatal exceptions if (aException.Priority == ExceptionEventImpl.FATAL) bre.Stop(); }
private void HandleExceptionEvent(object obj, IExceptionEvent aException) { if (aException.Priority >= errorLevel) Console.Error.WriteLine("NxBRE ERROR " + aException.Priority + ": " + aException.Exception.ToString()); }