C# 클래스 BF2Statistics.ExceptionHandler

A simple object to handle exceptions thrown during runtime
파일 보기 프로젝트 열기: BF2Statistics/ControlCenter

공개 메소드들

메소드 설명
GenerateExceptionLog ( Exception E ) : void

Generates a trace log for an exception. If an exception is thrown here, The error will automatically be logged in the programs error log

GenerateExceptionLog ( Exception E, string &FileName ) : void

Generates a trace log for an exception. If an exception is thrown here, The error will automatically be logged in the programs error log

GenerateExceptionLog ( string FileName, Exception E ) : void

Generates a trace log for an exception. If an exception is thrown here, The error will automatically be logged in the programs error log

OnThreadException ( object sender, ThreadExceptionEventArgs t ) : void

Handles an exception on the main thread.

OnUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void

Handles cross thread exceptions, that are unrecoverable

비공개 메소드들

메소드 설명
GenerateFileName ( ) : string

Generates a filename to be used for logging

메소드 상세

GenerateExceptionLog() 공개 정적인 메소드

Generates a trace log for an exception. If an exception is thrown here, The error will automatically be logged in the programs error log
public static GenerateExceptionLog ( Exception E ) : void
E System.Exception The exception we are logging
리턴 void

GenerateExceptionLog() 공개 정적인 메소드

Generates a trace log for an exception. If an exception is thrown here, The error will automatically be logged in the programs error log
public static GenerateExceptionLog ( Exception E, string &FileName ) : void
E System.Exception The exception we are logging
FileName string Provides the full file path and name where this exception log is created at.
리턴 void

GenerateExceptionLog() 공개 정적인 메소드

Generates a trace log for an exception. If an exception is thrown here, The error will automatically be logged in the programs error log
public static GenerateExceptionLog ( string FileName, Exception E ) : void
FileName string The tracelog filepath (Must not exist yet)
E System.Exception The exception to log
리턴 void

OnThreadException() 공개 정적인 메소드

Handles an exception on the main thread.
public static OnThreadException ( object sender, ThreadExceptionEventArgs t ) : void
sender object
t System.Threading.ThreadExceptionEventArgs
리턴 void

OnUnhandledException() 공개 정적인 메소드

Handles cross thread exceptions, that are unrecoverable
public static OnUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e System.UnhandledExceptionEventArgs
리턴 void