Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Figueiredo Jr. <fxjr@mono-cvs.ximian.com>2004-05-01 22:07:32 +0400
committerFrancisco Figueiredo Jr. <fxjr@mono-cvs.ximian.com>2004-05-01 22:07:32 +0400
commitfa3dd415614192205f568edcbbfa6a3858a7b7c8 (patch)
tree6fbe5066367b1059a0107d0db14978709bd05603 /mcs/class/Npgsql/NpgsqlTypes
parent0f7790812d350921c319fca21df47e12818f1adc (diff)
2004-05-01 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
* Npgsql/NpgsqlCommand.cs, Npgsql/NpgsqlConnection.cs, Npgsql/NpgsqlConnector.cs, Npgsql/NpgsqlConnectorPool.cs, Npgsql/NpgsqlError.cs, Npgsql/NpgsqlException.cs, Npgsql/NpgsqlParameterCollection.cs, NpgsqlTypes/NpgsqlTypesHelper.cs: Improved exception support. Now NpgsqlException as well as NpgsqlError provide much more information. Thanks Glen Parker (glenebob@nwlink.com) for the patch. svn path=/trunk/mcs/; revision=26519
Diffstat (limited to 'mcs/class/Npgsql/NpgsqlTypes')
-rwxr-xr-xmcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs b/mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs
index 3809ff6014d..7d4d21f9ad2 100755
--- a/mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs
+++ b/mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs
@@ -144,7 +144,7 @@ namespace NpgsqlTypes
case DbType.Time:
return "time";
default:
- throw new NpgsqlException(String.Format(resman.GetString("Exception_TypeNotSupported"), dbType));
+ throw new Exception(String.Format(resman.GetString("Exception_TypeNotSupported"), dbType));
}
}
@@ -179,7 +179,7 @@ namespace NpgsqlTypes
case DbType.StringFixedLength:
return encoding.GetString(data, 0, fieldValueSize);
default:
- throw new NpgsqlException("Type not supported in binary format");
+ throw new Exception("Type not supported in binary format");
}
@@ -229,7 +229,7 @@ namespace NpgsqlTypes
default:
// This should not happen!
- throw new NpgsqlException(String.Format(resman.GetString("Exception_TypeNotSupported"), parameter.DbType));
+ throw new Exception(String.Format(resman.GetString("Exception_TypeNotSupported"), parameter.DbType));
}
@@ -309,7 +309,7 @@ namespace NpgsqlTypes
case DbType.StringFixedLength:
return data;
default:
- throw new NpgsqlException(String.Format(resman.GetString("Exception_TypeNotSupported"), oidToNameMapping[typeOid]));
+ throw new Exception(String.Format(resman.GetString("Exception_TypeNotSupported"), oidToNameMapping[typeOid]));
}
@@ -365,7 +365,7 @@ namespace NpgsqlTypes
case DbType.StringFixedLength:
return Type.GetType("System.String");
default:
- throw new NpgsqlException(String.Format(resman.GetString("Exception_TypeNotSupported"), oidToNameMapping[typeOid]));
+ throw new Exception(String.Format(resman.GetString("Exception_TypeNotSupported"), oidToNameMapping[typeOid]));
}