Overview
Comment: | OFGetCurrentDirectory{Path -> }FailedException |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
4d1eba5829293db390f0f4fd54882d26 |
User & Date: | js on 2022-09-25 13:06:28 |
Other Links: | manifest | tags |
Context
2022-09-25
| ||
13:52 | Document more exceptions check-in: 3d09d83f70 user: js tags: trunk | |
13:06 | OFGetCurrentDirectory{Path -> }FailedException check-in: 4d1eba5829 user: js tags: trunk | |
2022-09-24
| ||
20:24 | Move OFWin32ConsoleStdIOStream to platforms check-in: 9e29b98fc3 user: js tags: trunk | |
Changes
Modified src/OFFileManager.m from [dd95d5c2a1] to [f7f7b80076].
︙ | ︙ | |||
41 42 43 44 45 46 47 | #import "OFSystemInfo.h" #import "OFURL.h" #import "OFURLHandler.h" #import "OFChangeCurrentDirectoryPathFailedException.h" #import "OFCopyItemFailedException.h" #import "OFCreateDirectoryFailedException.h" | | | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #import "OFSystemInfo.h" #import "OFURL.h" #import "OFURLHandler.h" #import "OFChangeCurrentDirectoryPathFailedException.h" #import "OFCopyItemFailedException.h" #import "OFCreateDirectoryFailedException.h" #import "OFGetCurrentDirectoryFailedException.h" #import "OFInitializationFailedException.h" #import "OFInvalidArgumentException.h" #import "OFMoveItemFailedException.h" #import "OFNotImplementedException.h" #import "OFOutOfMemoryException.h" #import "OFOutOfRangeException.h" #import "OFRemoveItemFailedException.h" |
︙ | ︙ | |||
167 168 169 170 171 172 173 | return [OFString stringWithCString: buffer encoding: [OFLocale encoding]]; # else char buffer[PATH_MAX]; if ((getcwd(buffer, PATH_MAX)) == NULL) | | | 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | return [OFString stringWithCString: buffer encoding: [OFLocale encoding]]; # else char buffer[PATH_MAX]; if ((getcwd(buffer, PATH_MAX)) == NULL) @throw [OFGetCurrentDirectoryFailedException exceptionWithErrNo: errno]; # ifdef OF_DJGPP /* * For some reason, getcwd() returns forward slashes on DJGPP, even * though the native format is to use backwards slashes. */ |
︙ | ︙ |
Modified src/ObjFW.h from [f2f8142302] to [fc4b4c5f03].
︙ | ︙ | |||
172 173 174 175 176 177 178 | #endif #ifdef OF_WINDOWS # import "OFDeleteWindowsRegistryKeyFailedException.h" # import "OFDeleteWindowsRegistryValueFailedException.h" #endif #import "OFEnumerationMutationException.h" #ifdef OF_HAVE_FILES | | | 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | #endif #ifdef OF_WINDOWS # import "OFDeleteWindowsRegistryKeyFailedException.h" # import "OFDeleteWindowsRegistryValueFailedException.h" #endif #import "OFEnumerationMutationException.h" #ifdef OF_HAVE_FILES # import "OFGetCurrentDirectoryFailedException.h" #endif #import "OFGetOptionFailedException.h" #ifdef OF_WINDOWS # import "OFGetWindowsRegistryValueFailedException.h" #endif #import "OFHashAlreadyCalculatedException.h" #import "OFHashNotCalculatedException.h" |
︙ | ︙ |
Modified src/exceptions/Makefile from [cb823e99e8] to [1015937e29].
︙ | ︙ | |||
47 48 49 50 51 52 53 | OFUnsupportedVersionException.m \ OFWriteFailedException.m \ ${USE_SRCS_FILES} \ ${USE_SRCS_PLUGINS} \ ${USE_SRCS_SOCKETS} \ ${USE_SRCS_THREADS} \ ${USE_SRCS_WINDOWS} | | | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | OFUnsupportedVersionException.m \ OFWriteFailedException.m \ ${USE_SRCS_FILES} \ ${USE_SRCS_PLUGINS} \ ${USE_SRCS_SOCKETS} \ ${USE_SRCS_THREADS} \ ${USE_SRCS_WINDOWS} SRCS_FILES = OFGetCurrentDirectoryFailedException.m SRCS_PLUGINS = OFLoadPluginFailedException.m SRCS_SOCKETS = OFAcceptFailedException.m \ OFAlreadyConnectedException.m \ OFBindFailedException.m \ OFConnectionFailedException.m \ OFDNSQueryFailedException.m \ OFHTTPRequestFailedException.m \ |
︙ | ︙ |
Renamed and modified src/exceptions/OFGetCurrentDirectoryPathFailedException.h [30be5f43f5] to src/exceptions/OFGetCurrentDirectoryFailedException.h [60ae2d8910].
︙ | ︙ | |||
14 15 16 17 18 19 20 | */ #import "OFException.h" OF_ASSUME_NONNULL_BEGIN /** | | | | | | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | */ #import "OFException.h" OF_ASSUME_NONNULL_BEGIN /** * @class OFGetCurrentDirectoryFailedException \ * OFGetCurrentDirectoryFailedException.h \ * ObjFW/OFGetCurrentDirectoryFailedException.h * * @brief An exception indicating that getting the current directory path * failed. */ @interface OFGetCurrentDirectoryFailedException: OFException { int _errNo; OF_RESERVE_IVARS(OFGetCurrentDirectoryFailedException, 4) } /** * @brief The errno of the error that occurred. */ @property (readonly, nonatomic) int errNo; |
︙ | ︙ |
Renamed and modified src/exceptions/OFGetCurrentDirectoryPathFailedException.m [60672e8d84] to src/exceptions/OFGetCurrentDirectoryFailedException.m [b29d0ac295].
︙ | ︙ | |||
11 12 13 14 15 16 17 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | | | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "OFGetCurrentDirectoryFailedException.h" #import "OFString.h" @implementation OFGetCurrentDirectoryFailedException @synthesize errNo = _errNo; + (instancetype)exceptionWithErrNo: (int)errNo { return [[[self alloc] initWithErrNo: errNo] autorelease]; } |
︙ | ︙ |