4 Copyright (C) 1996 Free Software Foundation, Inc.
6 Author: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
9 This file is part of the GNUstep Database Library.
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.
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.
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.
27 #ifndef __EOFExceptions_h__
28 #define __EOFExceptions_h__
30 #import <Foundation/NSException.h>
34 @class EORelationship;
35 @class EOAdaptorChannel;
37 @interface EOFException : NSException
40 @interface ObjectNotAvailableException : EOFException
41 - initWithEntity:entity andPrimaryKey:key;
44 @interface PropertyDefinitionException : EOFException
47 @interface DestinationEntityDoesntMatchDefinitionException
48 : PropertyDefinitionException
49 - initForDestination:(EOEntity*)destinationEntity
50 andDefinition:(NSString*)definition
51 relationship:(EORelationship*)relationship;
54 @interface InvalidNameException : PropertyDefinitionException
55 - initWithName:(NSString*)name;
58 @interface InvalidPropertyException : PropertyDefinitionException
59 - initWithName:propertyNamed entity:currentEntity;
62 @interface RelationshipMustBeToOneException : PropertyDefinitionException
63 - initWithName:propertyNamed entity:currentEntity;
66 @interface InvalidValueTypeException : PropertyDefinitionException
70 @interface InvalidAttributeException : EOFException
73 @interface InvalidQualifierException : EOFException
76 @interface EOAdaptorException : EOFException
79 @interface CannotFindAdaptorBundleException : EOAdaptorException
82 @interface InvalidAdaptorBundleException : EOAdaptorException
85 @interface InvalidAdaptorStateException : EOAdaptorException
89 + exceptionWithAdaptor:(id)adaptor;
92 @interface DataTypeMappingNotSupportedException : EOAdaptorException
95 @interface ChannelIsNotOpenedException : InvalidAdaptorStateException
98 @interface AdaptorIsFetchingException : InvalidAdaptorStateException
101 @interface AdaptorIsNotFetchingException : InvalidAdaptorStateException
104 @interface NoTransactionInProgressException : InvalidAdaptorStateException
107 @interface TooManyOpenedChannelsException : EOAdaptorException
110 #endif /* __EOFExceptions_h__ */