e5a3b39072620cbb6af5c8d8f7df4817abbd23f9
[mono.git] / mcs / class / referencesource / System.Data / System / Data / Sql / SqlGenericUtil.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="SqlGenericUtil.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">Microsoft</owner>
6 // <owner current="true" primary="false">Microsoft</owner>
7 //------------------------------------------------------------------------------
8
9 namespace System.Data.Sql {
10     using System;
11     using System.Data;
12     using System.Data.Common;
13     using System.Diagnostics;
14
15     sealed internal class SqlGenericUtil {
16
17         private SqlGenericUtil() { /* prevent utility class from being insantiated*/ }
18
19         //
20         // Sql generic exceptions
21         //
22
23         //
24         // Sql.Definition
25         //
26
27         static internal Exception NullCommandText() {
28             return ADP.Argument(Res.GetString(Res.Sql_NullCommandText));
29         }
30         static internal Exception MismatchedMetaDataDirectionArrayLengths() {
31             return ADP.Argument(Res.GetString(Res.Sql_MismatchedMetaDataDirectionArrayLengths));
32         }
33     }
34
35  }//namespace
36