]> err.no Git - sope/blob - sope-gdl1/GDLAccess/EOFExceptions.h
removed subminor
[sope] / sope-gdl1 / GDLAccess / EOFExceptions.h
1 /* 
2    EOFExceptions.h
3
4    Copyright (C) 1996 Free Software Foundation, Inc.
5
6    Author: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
7    Date: August 1996
8
9    This file is part of the GNUstep Database Library.
10
11    This library is free software; you can redistribute it and/or
12    modify it under the terms of the GNU Library General Public
13    License as published by the Free Software Foundation; either
14    version 2 of the License, or (at your option) any later version.
15
16    This library is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19    Library General Public License for more details.
20
21    You should have received a copy of the GNU Library General Public
22    License along with this library; see the file COPYING.LIB.
23    If not, write to the Free Software Foundation,
24    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 */
26
27 #ifndef __EOFExceptions_h__
28 #define __EOFExceptions_h__
29
30 #import <Foundation/NSException.h>
31
32 @class NSString;
33 @class EOEntity;
34 @class EORelationship;
35 @class EOAdaptorChannel;
36
37 @interface EOFException : NSException
38 @end
39
40 @interface ObjectNotAvailableException : EOFException
41 - initWithEntity:entity andPrimaryKey:key;
42 @end
43
44 @interface PropertyDefinitionException : EOFException
45 @end
46
47 @interface DestinationEntityDoesntMatchDefinitionException
48                 : PropertyDefinitionException
49 - initForDestination:(EOEntity*)destinationEntity
50         andDefinition:(NSString*)definition
51         relationship:(EORelationship*)relationship;
52 @end
53
54 @interface InvalidNameException : PropertyDefinitionException
55 - initWithName:(NSString*)name;
56 @end
57
58 @interface InvalidPropertyException : PropertyDefinitionException
59 - initWithName:propertyNamed entity:currentEntity;
60 @end
61
62 @interface RelationshipMustBeToOneException : PropertyDefinitionException
63 - initWithName:propertyNamed entity:currentEntity;
64 @end
65
66 @interface InvalidValueTypeException : PropertyDefinitionException
67 - initWithType:type;
68 @end
69
70 @interface InvalidAttributeException : EOFException
71 @end
72
73 @interface InvalidQualifierException : EOFException
74 @end
75
76 @interface EOAdaptorException : EOFException
77 @end
78
79 @interface CannotFindAdaptorBundleException : EOAdaptorException
80 @end
81
82 @interface InvalidAdaptorBundleException : EOAdaptorException
83 @end
84
85 @interface InvalidAdaptorStateException : EOAdaptorException
86 {
87     id adaptor;
88 }
89 + exceptionWithAdaptor:(id)adaptor;
90 @end
91
92 @interface DataTypeMappingNotSupportedException : EOAdaptorException
93 @end
94
95 @interface ChannelIsNotOpenedException : InvalidAdaptorStateException
96 @end
97
98 @interface AdaptorIsFetchingException : InvalidAdaptorStateException
99 @end
100
101 @interface AdaptorIsNotFetchingException : InvalidAdaptorStateException
102 @end
103
104 @interface NoTransactionInProgressException : InvalidAdaptorStateException
105 @end
106
107 @interface TooManyOpenedChannelsException : EOAdaptorException
108 @end
109
110 #endif /* __EOFExceptions_h__ */
111
112 /*
113   Local Variables:
114   c-basic-offset: 4
115   tab-width: 8
116   End:
117 */