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
{
10
public
class
ExceptionConsoleLogger
:
IExceptionHandler
11
{
12
public
bool
HandleException
(Exception e)
13
{
14
Console.WriteLine(e.Message +
"\nStackTrace:\n"
+ e.StackTrace);
15
return
false
;
16
}
17
}
18
}
MTSC.Exceptions.ExceptionConsoleLogger.HandleException
bool HandleException(Exception e)
Handles exceptions.
Definition:
ExceptionConsoleLogger.cs:12
MTSC.Exceptions
Definition:
ExceptionConsoleLogger.cs:5
MTSC.Exceptions.ExceptionConsoleLogger
Logs the received exceptions to the console.
Definition:
ExceptionConsoleLogger.cs:10
MTSC.Exceptions.IExceptionHandler
Handler to be used for handling exception.
Definition:
IExceptionHandler.cs:10
MTSC
MTSC
Exceptions
ExceptionConsoleLogger.cs
Generated by
1.8.15