diff options
author | Francisco Figueiredo Jr. <fxjr@mono-cvs.ximian.com> | 2004-05-01 22:07:32 +0400 |
---|---|---|
committer | Francisco Figueiredo Jr. <fxjr@mono-cvs.ximian.com> | 2004-05-01 22:07:32 +0400 |
commit | fa3dd415614192205f568edcbbfa6a3858a7b7c8 (patch) | |
tree | 6fbe5066367b1059a0107d0db14978709bd05603 /mcs/class/Npgsql/NpgsqlTypes | |
parent | 0f7790812d350921c319fca21df47e12818f1adc (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-x | mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs | 10 |
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])); } |