C# Class Core.Framework.MEF.Throw.Throw

Show file Open project: coreframework/Core-Framework

Public Methods

Method Description
ConfigurationErrors ( String message, Exception>.Func modifier = null ) : void

Throws a ConfigurationErrorsException with the specified message.

InvalidOperation ( String message, Exception>.Func modifier = null ) : void

Throws a InvalidOperationException with the specified message.

NotSupported ( String message, Exception>.Func modifier = null ) : void

Throws a NotSupportedException with the specified message.

Private Methods

Method Description
IfArgumentNull ( object argument, String argumentName, Exception>.Func modifier = null ) : void
IfArgumentNullOrEmpty ( String argument, String argumentName, Exception>.Func modifier = null ) : void
ThrowInternal ( Exception exception, Exception>.Func modifier = null ) : void

Method Details

ConfigurationErrors() public static method

Throws a ConfigurationErrorsException with the specified message.
public static ConfigurationErrors ( String message, Exception>.Func modifier = null ) : void
message String The message to throw.
modifier Exception>.Func A modifier delegate used to modify the exception before being thrown.
return void

InvalidOperation() public static method

Throws a InvalidOperationException with the specified message.
public static InvalidOperation ( String message, Exception>.Func modifier = null ) : void
message String The message to throw.
modifier Exception>.Func A modifier delegate used to modify the exception before being thrown.
return void

NotSupported() public static method

Throws a NotSupportedException with the specified message.
public static NotSupported ( String message, Exception>.Func modifier = null ) : void
message String The message to throw.
modifier Exception>.Func A modifier delegate used to modify the exception before being thrown.
return void