C# Class CEngineSharp_Server.Utilities.ErrorHandler

Show file Open project: JohnLamontagne/CEngineSharp

Public Methods

Method Description
HandleException ( Exception exception, ErrorLevels errorLevel ) : void

Handles a server exception by logging it and, if neccessary, shutting down the server.

Private Methods

Method Description
LogError ( Exception ex, ErrorLevels errorLevel ) : void

Method Details

HandleException() public static method

Handles a server exception by logging it and, if neccessary, shutting down the server.
public static HandleException ( Exception exception, ErrorLevels errorLevel ) : void
exception System.Exception The exception object that describes the error that has occured.
errorLevel ErrorLevels The projected severity of the error that has occured.
return void