Rename project to ObjSQLite3
FossilOrigin-Name: b821df3a30cc9a96f4d9ef2e3e35439610302312d5df3f7fd00ee69993d280ac
This commit is contained in:
parent
ac03d41ce8
commit
a6a6c5b76a
12 changed files with 52 additions and 51 deletions
|
@ -3,7 +3,7 @@ include ../../extra.mk
|
|||
STATIC_PIC_LIB_NOINST = ${EXCEPTIONS_LIB_A}
|
||||
STATIC_LIB_NOINST = ${EXCEPTIONS_A}
|
||||
|
||||
SRCS = SLException.m
|
||||
SRCS = SL3Exception.m
|
||||
|
||||
INCLUDES = ${SRCS:.m=.h}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Jonathan Schleifer <js@nil.im>
|
||||
*
|
||||
* https://fossil.nil.im/objsqlite
|
||||
* https://fossil.nil.im/objsqlite3
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
|
@ -22,22 +22,22 @@
|
|||
|
||||
#import <ObjFW/ObjFW.h>
|
||||
|
||||
#import "SLConnection.h"
|
||||
#import "SL3Connection.h"
|
||||
|
||||
OF_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface SLException: OFException
|
||||
@interface SL3Exception: OFException
|
||||
{
|
||||
SLConnection *_connection;
|
||||
SL3Connection *_connection;
|
||||
int _errorCode;
|
||||
}
|
||||
|
||||
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) SLConnection *connection;
|
||||
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) SL3Connection *connection;
|
||||
@property (readonly, nonatomic) int errorCode;
|
||||
|
||||
+ (instancetype)exceptionWithConnection: (nullable SLConnection *)connection
|
||||
+ (instancetype)exceptionWithConnection: (nullable SL3Connection *)connection
|
||||
errorCode: (int)errorCode;
|
||||
- (instancetype)initWithConnection: (nullable SLConnection *)connection
|
||||
- (instancetype)initWithConnection: (nullable SL3Connection *)connection
|
||||
errorCode: (int)errorCode OF_DESIGNATED_INITIALIZER;
|
||||
@end
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Jonathan Schleifer <js@nil.im>
|
||||
*
|
||||
* https://fossil.nil.im/objsqlite
|
||||
* https://fossil.nil.im/objsqlite3
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
|
@ -20,19 +20,19 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import "SLException.h"
|
||||
#import "SL3Exception.h"
|
||||
|
||||
@implementation SLException
|
||||
@implementation SL3Exception
|
||||
@synthesize connection = _connection, errorCode = _errorCode;
|
||||
|
||||
+ (instancetype)exceptionWithConnection: (SLConnection *)connection
|
||||
+ (instancetype)exceptionWithConnection: (SL3Connection *)connection
|
||||
errorCode: (int)errorCode
|
||||
{
|
||||
return [[[self alloc] initWithConnection: connection
|
||||
errorCode: errorCode] autorelease];
|
||||
}
|
||||
|
||||
- (instancetype)initWithConnection: (SLConnection *)connection
|
||||
- (instancetype)initWithConnection: (SL3Connection *)connection
|
||||
errorCode: (int)errorCode
|
||||
{
|
||||
self = [super init];
|
Loading…
Add table
Add a link
Reference in a new issue