MTSC  1.0.5
Build TCP servers out of modules with handlers for communication, exception and logging.
ExceptionConsoleLogger.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 
5 namespace MTSC.Exceptions
6 {
11  {
12  public bool HandleException(Exception e)
13  {
14  Console.WriteLine(e.Message + "\nStackTrace:\n" + e.StackTrace);
15  return false;
16  }
17  }
18 }
bool HandleException(Exception e)
Handles exceptions.
Logs the received exceptions to the console.
Handler to be used for handling exception.