Esempio n. 1
0
 private void HandleExceptionEvent(object obj, IExceptionEvent aException)
 {
     if (aException.Priority >= errorLevel)
     {
         Console.Error.WriteLine("NxBRE ERROR " + aException.Priority + ": " + aException.Exception.ToString());
     }
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
        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();
            }
        }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
		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;
		}
Esempio n. 6
0
 private void HandleExceptionEvent(object obj, IExceptionEvent aException)
 {
     if (aException.Priority >= errorLevel)
         Console.Error.WriteLine("NxBRE ERROR " + aException.Priority + ": " + aException.Exception.ToString());
 }