C# Class YAMP.Exceptions.YAMPArgumentWrongTypeException

Class to use when an argument has the wrong-type and some other type was expected.
Inheritance: YAMPRuntimeException
Mostra file Open project: FlorianRappl/YAMP

Public Methods

Method Description
YAMPArgumentWrongTypeException ( String argumentType, String expectedType, String function ) : System

Creates a new instance of the argument wrong type exception.

YAMPArgumentWrongTypeException ( String argumentType, String expectedType, String function, String argumentName ) : System

Creates a new instance of the argument wrong type exception.

Method Details

YAMPArgumentWrongTypeException() public method

Creates a new instance of the argument wrong type exception.
public YAMPArgumentWrongTypeException ( String argumentType, String expectedType, String function ) : System
argumentType String The given argument type.
expectedType String The expected argument type.
function String The function where this happened.
return System

YAMPArgumentWrongTypeException() public method

Creates a new instance of the argument wrong type exception.
public YAMPArgumentWrongTypeException ( String argumentType, String expectedType, String function, String argumentName ) : System
argumentType String The given argument type.
expectedType String The expected argument type.
function String The function where this happened.
argumentName String The name of the provided argument.
return System