Cuemon .NET Framework
Refine<T>(T,MethodBase,Object[]) Method

The type of the exception.
The exception that needs to be thrown.
The method to extract valuable meta information from.
The optional parameters to accompany method.
Refines the specified exception with valuable meta information extracted from the associated method and parameters.
Syntax
'Declaration
 
Public Overloads Shared Function Refine(Of T As Exception)( _
   ByVal exception As T, _
   ByVal method As MethodBase, _
   ByVal ParamArray parameters() As Object _
) As T
public static T Refine<T>( 
   T exception,
   MethodBase method,
   params object[] parameters
)
where T: Exception

Parameters

exception
The exception that needs to be thrown.
method
The method to extract valuable meta information from.
parameters
The optional parameters to accompany method.

Type Parameters

T
The type of the exception.

Return Value

The specified exception refined with valuable meta information.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionexception is null - or - method is null.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ExceptionUtility Class
ExceptionUtility Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback