Example #1
0
        /// <summary>
        /// Push exception packet of correct serialized format out std err
        /// </summary>
        /// <param name="e"></param>
        /// <remarks>
        /// According to the application program try-catch-finally pattern, this
        /// should only be executing if the application was unable to construct the
        /// execution system object.  Therefore, there is no instance on which to execute
        /// module functions like user interface and exception handlers.
        ///
        /// We just have to give up...so please always program reliable well tested constructors for the
        /// execution system!
        /// </remarks>
        public static void ApplicationExceptionHandler(Exception e)
        {
            ExceptionPacket_0 ePack = new ExceptionPacket_0 {
                PackedException = NewApplicationException(e)
            };

            ePack.ToByteStream(BaseClass_Sys_ExecutionPolicy.default_serialization, Console.OpenStandardOutput());
        }
Example #2
0
 void ConsoleDumpExceptions()
 {
     foreach (ExeSysException ep in exception_list)
     {
         ExceptionPacket_0 ePack = new ExceptionPacket_0 {
             PackedException = ep
         };
         ePack.ToByteStream(ExecutionPolicy.SystemSerializationType, stdErrorStream);
     }
 }