C# Class MtGoxTrader.Trader.Utils

Show file Open project: iamapi/MtgoxTrader

Public Methods

Method Description
GetDetailedException ( Exception exception ) : string

Helper method to get error message including inner exception

GetStackTrace ( Exception exception ) : string

Helper method to get stack trace including inner exception

LoadFromFile ( string fileName, Type t ) : object
SaveToFile ( object t, string fileName ) : void

Method Details

GetDetailedException() public static method

Helper method to get error message including inner exception
public static GetDetailedException ( Exception exception ) : string
exception System.Exception The exception object
return string

GetStackTrace() public static method

Helper method to get stack trace including inner exception
public static GetStackTrace ( Exception exception ) : string
exception System.Exception The exception object
return string

LoadFromFile() public static method

public static LoadFromFile ( string fileName, Type t ) : object
fileName string
t System.Type
return object

SaveToFile() public static method

public static SaveToFile ( object t, string fileName ) : void
t object
fileName string
return void