Common Logging 2.0 API Reference |
|
ArgUtils.Guard Method
Ensures any exception thrown by the given action is wrapped with an ConfigurationException.
[Visual Basic]
Public Shared Sub Guard( _
ByVal
action As
Action, _
ByVal
messageFormat As
String, _
ParamArray
args As
Object _
)
Parameters
-
action
- the action to execute
-
messageFormat
- the message to be set on the thrown ConfigurationException
-
args
- args to be passed to Format to format the message
Remarks
If action already throws a ConfigurationException, it will not be wrapped.
See Also
ArgUtils Class | Common.Logging.Configuration Namespace