Added license and copyright
[mono.git] / mcs / class / Microsoft.VisualBasic / Microsoft.VisualBasic / Microsoft.VisualBasic.CompilerServices / VBErrors.cs
1  /*
2   * Copyright (c) 2002-2003 Mainsoft Corporation.
3   * Copyright (C) 2004 Novell, Inc (http://www.novell.com)
4   *
5   * Permission is hereby granted, free of charge, to any person obtaining a
6   * copy of this software and associated documentation files (the "Software"),
7   * to deal in the Software without restriction, including without limitation
8   * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9   * and/or sell copies of the Software, and to permit persons to whom the
10   * Software is furnished to do so, subject to the following conditions:
11   * 
12   * The above copyright notice and this permission notice shall be included in
13   * all copies or substantial portions of the Software.
14   * 
15   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21   * DEALINGS IN THE SOFTWARE.
22   */
23
24
25 public class VBErrors 
26 {
27         public const int None = 0;
28         public const int ReturnWOGoSub = 3;
29         public const int IllegalFuncCall = 5;
30         public const int Overflow = 6;
31         public const int OutOfMemory = 7;
32         public const int OutOfBounds = 9;
33         public const int ArrayLocked = 10;
34         public const int DivByZero = 11;
35         public const int TypeMismatch = 13;
36         public const int OutOfStrSpace = 14;
37         public const int ExprTooComplex = 16;
38         public const int CantContinue = 17;
39         public const int UserInterrupt = 18;
40         public const int ResumeWOErr = 20;
41         public const int OutOfStack = 28;
42         public const int UNDONE = 29;
43         public const int UndefinedProc = 35;
44         public const int TooManyClients = 47;
45         public const int DLLLoadErr = 48;
46         public const int DLLBadCallingConv = 49;
47         public const int InternalError = 51;
48         public const int BadFileNameOrNumber = 52;
49         public const int FileNotFound = 53;
50         public const int BadFileMode = 54;
51         public const int FileAlreadyOpen = 55;
52         public const int IOError = 57;
53         public const int FileAlreadyExists = 58;
54         public const int BadRecordLen = 59;
55         public const int DiskFull = 61;
56         public const int EndOfFile = 62;
57         public const int BadRecordNum = 63;
58         public const int TooManyFiles = 67;
59         public const int DevUnavailable = 68;
60         public const int PermissionDenied = 70;
61         public const int DiskNotReady = 71;
62         public const int DifferentDrive = 74;
63         public const int PathFileAccess = 75;
64         public const int PathNotFound = 76;
65         public const int ObjNotSet = 91;
66         public const int IllegalFor = 92;
67         public const int BadPatStr = 93;
68         public const int CantUseNull = 94;
69         public const int UserDefined = 95;
70         public const int AdviseLimit = 96;
71         public const int BadCallToFriendFunction = 97;
72         public const int CantPassPrivateObject = 98;
73         public const int DLLCallException = 99;
74         public const int DoesntImplementICollection = 100;
75         public const int Abort = 287;
76         public const int InvalidFileFormat = 321;
77         public const int CantCreateTmpFile = 322;
78         public const int InvalidResourceFormat = 325;
79         public const int InvalidPropertyValue = 380;
80         public const int InvalidPropertyArrayIndex = 381;
81         public const int SetNotSupportedAtRuntime = 382;
82         public const int SetNotSupported = 383;
83         public const int NeedPropertyArrayIndex = 385;
84         public const int SetNotPermitted = 387;
85         public const int GetNotSupportedAtRuntime = 393;
86         public const int GetNotSupported = 394;
87         public const int PropertyNotFound = 422;
88         public const int NoSuchControlOrProperty = 423;
89         public const int NotObject = 424;
90         public const int CantCreateObject = 429;
91         public const int OLENotSupported = 430;
92         public const int OLEFileNotFound = 432;
93         public const int OLENoPropOrMethod = 438;
94         public const int OLEAutomationError = 440;
95         public const int LostTLB = 442;
96         public const int OLENoDefault = 443;
97         public const int ActionNotSupported = 445;
98         public const int NamedArgsNotSupported = 446;
99         public const int LocaleSettingNotSupported = 447;
100         public const int NamedParamNotFound = 448;
101         public const int ParameterNotOptional = 449;
102         public const int FuncArityMismatch = 450;
103         public const int NotEnum = 451;
104         public const int InvalidOrdinal = 452;
105         public const int InvalidDllFunctionName = 453;
106         public const int CodeResourceNotFound = 454;
107         public const int CodeResourceLockError = 455;
108         public const int DuplicateKey = 457;
109         public const int InvalidTypeLibVariable = 458;
110         public const int ObjDoesNotSupportEvents = 459;
111         public const int InvalidClipboardFormat = 460;
112         public const int IdentNotMember = 461;
113         public const int ServerNotFound = 462;
114         public const int ObjNotRegistered = 463;
115         public const int InvalidPicture = 481;
116         public const int PrinterError = 482;
117         public const int CantSaveFileToTemp = 735;
118         public const int SearchTextNotFound = 744;
119         public const int ReplacementsTooLong = 746;
120         public const int LastTrappable = 746;
121         public const int NotYetImplemented = 32768;
122         public const int SeekErr = 32771;
123         public const int ReadFault = 32772;
124         public const int WriteFault = 32773;
125         public const int BadFunctionId = 32774;
126         public const int FileLockViolation = 32775;
127         public const int ShareRequired = 32789;
128         public const int BufferTooSmall = 32790;
129         public const int InvDataRead = 32792;
130         public const int UnsupFormat = 32793;
131         public const int RegistryAccess = 32796;
132         public const int LibNotRegistered = 32797;
133         public const int Usage = 32799;
134         public const int UndefinedType = 32807;
135         public const int QualifiedNameDisallowed = 32808;
136         public const int InvalidState = 32809;
137         public const int WrongTypeKind = 32810;
138         public const int ElementNotFound = 32811;
139         public const int AmbiguousName = 32812;
140         public const int ModNameConflict = 32813;
141         public const int UnknownLcid = 32814;
142         public const int BadModuleKind = 35005;
143         public const int NoContainingLib = 35009;
144         public const int BadTypeId = 35010;
145         public const int BadLibId = 35011;
146         public const int Eof = 35012;
147         public const int SizeTooBig = 35013;
148         public const int ExpectedFuncNotModule = 35015;
149         public const int ExpectedFuncNotRecord = 35016;
150         public const int ExpectedFuncNotProject = 35017;
151         public const int ExpectedFuncNotVar = 35018;
152         public const int ExpectedTypeNotProj = 35019;
153         public const int UnsuitableFuncPropMatch = 35020;
154         public const int BrokenLibRef = 35021;
155         public const int UnsupportedTypeLibFeature = 35022;
156         public const int ModuleAsType = 35024;
157         public const int InvalidTypeInfoKind = 35025;
158         public const int InvalidTypeLibFunction = 35026;
159         public const int OperationNotAllowedInDll = 40035;
160         public const int CompileError = 40036;
161         public const int CantEvalWatch = 40037;
162         public const int MissingVbaTypeLib = 40038;
163         public const int UserReset = 40040;
164         public const int MissingEndBrack = 40041;
165         public const int IncorrectTypeChar = 40042;
166         public const int InvalidNumLit = 40043;
167         public const int IllegalChar = 40044;
168         public const int IdTooLong = 40045;
169         public const int StatementTooComplex = 40046;
170         public const int ExpectedTokens = 40047;
171         public const int InconsistentPropFuncs = 40067;
172         public const int CircularType = 40068;
173         public const int FileNotFoundWithName = 40243;
174         public const int CantFindDllEntryPoint = 59201;
175 }