Argument() static private method

static private Argument ( string error ) : ArgumentException
error string
return System.ArgumentException
Example #1
0
 static internal ArgumentException ParameterValueOutOfRange(Decimal value)
 {
     return(ADP.Argument(Res.GetString(Res.ADP_ParameterValueOutOfRange, value.ToString((IFormatProvider)null))));
 }
Example #2
0
 static internal ArgumentException ConvertFailed(Type fromType, Type toType, Exception innerException)
 {
     return(ADP.Argument(Res.GetString(Res.SqlConvert_ConvertFailed, fromType.FullName, toType.FullName), innerException));
 }
Example #3
0
 //
 // SqlMetaData, SqlTypes, SqlClient
 //
 static internal Exception InvalidMetaDataValue()
 {
     return(ADP.Argument(Res.GetString(Res.ADP_InvalidMetaDataValue)));
 }
Example #4
0
 static internal ArgumentException InvalidMinMaxPoolSizeValues()
 {
     return(ADP.Argument(Res.GetString(Res.ADP_InvalidMinMaxPoolSizeValues)));
 }
Example #5
0
 internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception innerException)
 {
     return(ADP.Argument(SR.Format(SR.SqlConvert_ConvertFailed, fromType.FullName, toType.FullName), innerException));
 }
 internal static ArgumentException ParameterValueOutOfRange(SqlDecimal value)
 {
     return(ADP.Argument(SR.GetString(SR.ADP_ParameterValueOutOfRange, value.ToString())));
 }
 //
 // SqlMetaData, SqlTypes, SqlClient
 //
 internal static Exception InvalidMetaDataValue()
 {
     return(ADP.Argument(SR.GetString(SR.ADP_InvalidMetaDataValue)));
 }
Example #8
0
 internal static ArgumentException InvalidRestrictionValue(string collectionName, string restrictionName, string restrictionValue)
 {
     return(ADP.Argument(SR.GetString(SR.MDF_InvalidRestrictionValue, collectionName, restrictionName, restrictionValue)));
 }