C# Class ApprovalUtilities.Utilities.ExceptionUtilities

ファイルを表示 Open project: approvals/ApprovalTests.Net Class Usage Examples

Public Methods

Method Description
FormatAsError ( ) : string
FormatError ( this except ) : string
FormatExeption ( Exception exception ) : string
GetException ( System.Action action ) : Exception
GetExceptionLines ( Exception except ) : string[]

Method Details

FormatAsError() public static method

public static FormatAsError ( ) : string
return string

FormatError() public static method

public static FormatError ( this except ) : string
except this
return string

FormatExeption() public static method

public static FormatExeption ( Exception exception ) : string
exception System.Exception
return string

GetException() public static method

public static GetException ( System.Action action ) : Exception
action System.Action
return System.Exception

GetExceptionLines() public static method

public static GetExceptionLines ( Exception except ) : string[]
except System.Exception
return string[]