C# Class XamarinCRM.Extensions.ExceptionExtensions

Exibir arquivo Open project: xamarin/app-crm

Public Methods

Method Description
ToFormattedDebugMessage ( this ex, Type callingClassType ) : string

Gets a formatted string with the calling class name, exception message, and stack trace.

ToFormattedDebugMessage ( this ex, object callingClass ) : string

Gets a formatted string with the calling class name, exception message, and stack trace.

WriteFormattedMessageToDebugConsole ( this ex, Type callingClassType ) : void

Writes a formatted string to the debug output with the calling class name, exception message, and stack trace.

WriteFormattedMessageToDebugConsole ( this ex, object callingClass ) : void

Writes a formatted string to the debug output with the calling class name, exception message, and stack trace.

Method Details

ToFormattedDebugMessage() public static method

Gets a formatted string with the calling class name, exception message, and stack trace.
public static ToFormattedDebugMessage ( this ex, Type callingClassType ) : string
ex this The .
callingClassType System.Type The of the calling class. Usually you'll pass 'typeof(CallingClass)' for this parameter.
return string

ToFormattedDebugMessage() public static method

Gets a formatted string with the calling class name, exception message, and stack trace.
public static ToFormattedDebugMessage ( this ex, object callingClass ) : string
ex this The .
callingClass object The class in which the exception was thrown. Usually you'll use the 'this' keyword for this parameter.
return string

WriteFormattedMessageToDebugConsole() public static method

Writes a formatted string to the debug output with the calling class name, exception message, and stack trace.
public static WriteFormattedMessageToDebugConsole ( this ex, Type callingClassType ) : void
ex this The .
callingClassType System.Type The of the calling class. Usually you'll pass 'typeof(CallingClass)' for this parameter.
return void

WriteFormattedMessageToDebugConsole() public static method

Writes a formatted string to the debug output with the calling class name, exception message, and stack trace.
public static WriteFormattedMessageToDebugConsole ( this ex, object callingClass ) : void
ex this The .
callingClass object The class in which the exception was thrown. Usually you'll use the 'this' keyword for this parameter.
return void