Index: src/exceptions/OFBindFailedException.h ================================================================== --- src/exceptions/OFBindFailedException.h +++ src/exceptions/OFBindFailedException.h @@ -45,11 +45,11 @@ * @brief Creates a new, autoreleased bind failed exception. * * @param host The host on which binding failed * @param port The port on which binding failed * @param socket The socket which could not be bound - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased bind failed exception */ + (instancetype)exceptionWithHost: (OFString*)host port: (uint16_t)port socket: (id)socket @@ -59,11 +59,11 @@ * @brief Initializes an already allocated bind failed exception. * * @param host The host on which binding failed * @param port The port on which binding failed * @param socket The socket which could not be bound - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized bind failed exception */ - initWithHost: (OFString*)host port: (uint16_t)port socket: (id)socket @@ -89,11 +89,11 @@ * @return The socket which could not be bound */ - (id)socket; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFChangeCurrentDirectoryPathFailedException.h ================================================================== --- src/exceptions/OFChangeCurrentDirectoryPathFailedException.h +++ src/exceptions/OFChangeCurrentDirectoryPathFailedException.h @@ -39,11 +39,11 @@ * @brief Creates a new, autoreleased change current directory path failed * exception. * * @param path The path of the directory to which the current path could not be * changed - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased change current directory path failed exception */ + (instancetype)exceptionWithPath: (OFString*)path errNo: (int)errNo; @@ -50,11 +50,11 @@ /*! * @brief Initializes an already allocated change directory failed exception. * * @param path The path of the directory to which the current path could not be * changed - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized change current directory path failed exception */ - initWithPath: (OFString*)path errNo: (int)errNo; @@ -66,11 +66,11 @@ * changed */ - (OFString*)path; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFChangeOwnerFailedException.h ================================================================== --- src/exceptions/OFChangeOwnerFailedException.h +++ src/exceptions/OFChangeOwnerFailedException.h @@ -38,11 +38,11 @@ * @brief Creates a new, autoreleased change owner failed exception. * * @param path The path of the item * @param owner The new owner for the item * @param group The new group for the item - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased change owner failed exception */ + (instancetype)exceptionWithPath: (OFString*)path owner: (OFString*)owner group: (OFString*)group @@ -52,11 +52,11 @@ * @brief Initializes an already allocated change owner failed exception. * * @param path The path of the item * @param owner The new owner for the item * @param group The new group for the item - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized change owner failed exception */ - initWithPath: (OFString*)path owner: (OFString*)owner group: (OFString*)group @@ -82,12 +82,12 @@ * @return The new group for the item */ - (OFString*)group; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end #endif Index: src/exceptions/OFChangePermissionsFailedException.h ================================================================== --- src/exceptions/OFChangePermissionsFailedException.h +++ src/exceptions/OFChangePermissionsFailedException.h @@ -42,11 +42,11 @@ /*! * @brief Creates a new, autoreleased change permissions failed exception. * * @param path The path of the item * @param permissions The new permissions for the item - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased change permissions failed exception */ + (instancetype)exceptionWithPath: (OFString*)path permissions: (mode_t)permissions errNo: (int)errNo; @@ -54,11 +54,11 @@ /*! * @brief Initializes an already allocated change permissions failed exception. * * @param path The path of the item * @param permissions The new permissions for the item - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized change permissions failed exception */ - initWithPath: (OFString*)path permissions: (mode_t)permissions errNo: (int)errNo; @@ -76,11 +76,11 @@ * @return The new permissions for the item */ - (mode_t)permissions; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFConnectionFailedException.h ================================================================== --- src/exceptions/OFConnectionFailedException.h +++ src/exceptions/OFConnectionFailedException.h @@ -57,11 +57,11 @@ * @brief Creates a new, autoreleased connection failed exception. * * @param host The host to which the connection failed * @param port The port on the host to which the connection failed * @param socket The socket which could not connect - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased connection failed exception */ + (instancetype)exceptionWithHost: (OFString*)host port: (uint16_t)port socket: (id)socket @@ -83,11 +83,11 @@ * @brief Initializes an already allocated connection failed exception. * * @param host The host to which the connection failed * @param port The port on the host to which the connection failed * @param socket The socket which could not connect - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized connection failed exception */ - initWithHost: (OFString*)host port: (uint16_t)port socket: (id)socket @@ -113,11 +113,11 @@ * @return The port on the host to which the connection failed */ - (uint16_t)port; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFCopyItemFailedException.h ================================================================== --- src/exceptions/OFCopyItemFailedException.h +++ src/exceptions/OFCopyItemFailedException.h @@ -37,11 +37,11 @@ /*! * @brief Creates a new, autoreleased copy item failed exception. * * @param sourcePath The original path * @param destinationPath The new path - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased copy item failed exception */ + (instancetype)exceptionWithSourcePath: (OFString*)sourcePath destinationPath: (OFString*)destinationPath errNo: (int)errNo; @@ -49,11 +49,11 @@ /*! * @brief Initializes an already allocated copy item failed exception. * * @param sourcePath The original path * @param destinationPath The new path - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized copy item failed exception */ - initWithSourcePath: (OFString*)sourcePath destinationPath: (OFString*)destinationPath errNo: (int)errNo; @@ -71,11 +71,11 @@ * @return The destination path */ - (OFString*)destinationPath; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFCreateDirectoryFailedException.h ================================================================== --- src/exceptions/OFCreateDirectoryFailedException.h +++ src/exceptions/OFCreateDirectoryFailedException.h @@ -37,11 +37,11 @@ /*! * @brief Creates a new, autoreleased create directory failed exception. * * @param path A string with the path of the directory which could not be * created - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased create directory failed exception */ + (instancetype)exceptionWithPath: (OFString*)path errNo: (int)errNo; @@ -48,11 +48,11 @@ /*! * @brief Initializes an already allocated create directory failed exception. * * @param path A string with the path of the directory which could not be * created - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized create directory failed exception */ - initWithPath: (OFString*)path errNo: (int)errNo; @@ -63,11 +63,11 @@ * @return A string with the path of the directory which couldn't be created */ - (OFString*)path; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFCreateSymbolicLinkFailedException.h ================================================================== --- src/exceptions/OFCreateSymbolicLinkFailedException.h +++ src/exceptions/OFCreateSymbolicLinkFailedException.h @@ -38,11 +38,11 @@ /*! * @brief Creates a new, autoreleased create symbolic link failed exception. * * @param sourcePath The source for the symbolic link * @param destinationPath The destination for the symbolic link - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased create symbolic link failed exception */ + (instancetype)exceptionWithSourcePath: (OFString*)sourcePath destinationPath: (OFString*)destinationPath errNo: (int)errNo; @@ -51,11 +51,11 @@ * @brief Initializes an already allocated create symbolic link failed * exception. * * @param sourcePath The source for the symbolic link * @param destinationPath The destination for the symbolic link - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized create symbolic link failed exception */ - initWithSourcePath: (OFString*)sourcePath destinationPath: (OFString*)destinationPath errNo: (int)errNo; @@ -73,12 +73,12 @@ * @return A string with the destination for the symlink */ - (OFString*)destinationPath; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end #endif Index: src/exceptions/OFLinkFailedException.h ================================================================== --- src/exceptions/OFLinkFailedException.h +++ src/exceptions/OFLinkFailedException.h @@ -37,11 +37,11 @@ /*! * @brief Creates a new, autoreleased link failed exception. * * @param sourcePath The source for the link * @param destinationPath The destination for the link - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased link failed exception */ + (instancetype)exceptionWithSourcePath: (OFString*)sourcePath destinationPath: (OFString*)destinationPath errNo: (int)errNo; @@ -49,11 +49,11 @@ /*! * @brief Initializes an already allocated link failed exception. * * @param sourcePath The source for the link * @param destinationPath The destination for the link - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized link failed exception */ - initWithSourcePath: (OFString*)sourcePath destinationPath: (OFString*)destinationPath errNo: (int)errNo; @@ -71,12 +71,12 @@ * @return A string with the destination for the link */ - (OFString*)destinationPath; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end #endif Index: src/exceptions/OFListenFailedException.h ================================================================== --- src/exceptions/OFListenFailedException.h +++ src/exceptions/OFListenFailedException.h @@ -40,11 +40,11 @@ /*! * @brief Creates a new, autoreleased listen failed exception. * * @param socket The socket which failed to listen * @param backLog The requested size of the back log - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased listen failed exception */ + (instancetype)exceptionWithSocket: (id)socket backLog: (int)backLog errNo: (int)errNo; @@ -52,11 +52,11 @@ /*! * @brief Initializes an already allocated listen failed exception * * @param socket The socket which failed to listen * @param backLog The requested size of the back log - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized listen failed exception */ - initWithSocket: (id)socket backLog: (int)backLog errNo: (int)errNo; @@ -74,11 +74,11 @@ * @return The requested back log */ - (int)backLog; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFMoveItemFailedException.h ================================================================== --- src/exceptions/OFMoveItemFailedException.h +++ src/exceptions/OFMoveItemFailedException.h @@ -36,11 +36,11 @@ /*! * @brief Creates a new, autoreleased move item failed exception. * * @param sourcePath The original path * @param destinationPath The new path - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased move item failed exception */ + (instancetype)exceptionWithSourcePath: (OFString*)sourcePath destinationPath: (OFString*)destinationPath errNo: (int)errNo; @@ -48,11 +48,11 @@ /*! * @brief Initializes an already allocated move item failed exception. * * @param sourcePath The original path * @param destinationPath The new path - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized move item failed exception */ - initWithSourcePath: (OFString*)sourcePath destinationPath: (OFString*)destinationPath errNo: (int)errNo; @@ -70,11 +70,11 @@ * @return The new path */ - (OFString*)destinationPath; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFOpenItemFailedException.h ================================================================== --- src/exceptions/OFOpenItemFailedException.h +++ src/exceptions/OFOpenItemFailedException.h @@ -53,11 +53,11 @@ /*! * @brief Creates a new, autoreleased open item failed exception. * * @param path A string with the path of the item tried to open - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased open item failed exception */ + (instancetype)exceptionWithPath: (OFString*)path errNo: (int)errNo; @@ -64,11 +64,11 @@ /*! * @brief Creates a new, autoreleased open item failed exception. * * @param path A string with the path of the item tried to open * @param mode A string with the mode in which the item should have been opened - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased open item failed exception */ + (instancetype)exceptionWithPath: (OFString*)path mode: (OFString*)mode errNo: (int)errNo; @@ -93,11 +93,11 @@ /*! * @brief Initializes an already allocated open item failed exception. * * @param path A string with the path of the item which couldn't be opened - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized open item failed exception */ - initWithPath: (OFString*)path errNo: (int)errNo; @@ -104,11 +104,11 @@ /*! * @brief Initializes an already allocated open item failed exception. * * @param path A string with the path of the item which couldn't be opened * @param mode A string with the mode in which the item should have been opened - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized open item failed exception */ - initWithPath: (OFString*)path mode: (OFString*)mode errNo: (int)errNo; @@ -127,11 +127,11 @@ * @return A string with the mode in which the item should have been opened */ - (OFString*)mode; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFReadOrWriteFailedException.h ================================================================== --- src/exceptions/OFReadOrWriteFailedException.h +++ src/exceptions/OFReadOrWriteFailedException.h @@ -51,11 +51,11 @@ * @brief Creates a new, autoreleased read or write failed exception. * * @param object The object from which reading or to which writing failed * @param requestedLength The requested length of the data that couldn't be * read / written - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased read or write failed exception */ + (instancetype)exceptionWithObject: (id)object requestedLength: (size_t)requestedLength errNo: (int)errNo; @@ -75,11 +75,11 @@ * @brief Initializes an already allocated read or write failed exception. * * @param object The object from which reading or to which writing failed * @param requestedLength The requested length of the data that couldn't be * read / written - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new open file failed exception */ - initWithObject: (id)object requestedLength: (size_t)requestedLength errNo: (int)errNo; @@ -98,11 +98,11 @@ * @return The requested length of the data that couldn't be read / written */ - (size_t)requestedLength; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFRemoveItemFailedException.h ================================================================== --- src/exceptions/OFRemoveItemFailedException.h +++ src/exceptions/OFRemoveItemFailedException.h @@ -35,21 +35,21 @@ /*! * @brief Creates a new, autoreleased remove failed exception. * * @param path The path of the item which could not be removed - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased remove item failed exception */ + (instancetype)exceptionWithPath: (OFString*)path errNo: (int)errNo; /*! * @brief Initializes an already allocated remove failed exception. * * @param path The path of the item which could not be removed - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized remove item failed exception */ - initWithPath: (OFString*)path errNo: (int)errNo; @@ -59,11 +59,11 @@ * @return The path of the item which could not be removed */ - (OFString*)path; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFSeekFailedException.h ================================================================== --- src/exceptions/OFSeekFailedException.h +++ src/exceptions/OFSeekFailedException.h @@ -40,11 +40,11 @@ * @brief Creates a new, autoreleased seek failed exception. * * @param stream The stream for which seeking failed * @param offset The offset to which seeking failed * @param whence To what the offset is relative - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased seek failed exception */ + (instancetype)exceptionWithStream: (OFSeekableStream*)stream offset: (of_offset_t)offset whence: (int)whence @@ -54,11 +54,11 @@ * @brief Initializes an already allocated seek failed exception. * * @param stream The stream for which seeking failed * @param offset The offset to which seeking failed * @param whence To what the offset is relative - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized seek failed exception */ - initWithStream: (OFSeekableStream*)stream offset: (of_offset_t)offset whence: (int)whence @@ -84,11 +84,11 @@ * @return To what the offset is relative */ - (int)whence; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFSetOptionFailedException.h ================================================================== --- src/exceptions/OFSetOptionFailedException.h +++ src/exceptions/OFSetOptionFailedException.h @@ -37,21 +37,21 @@ /*! * @brief Creates a new, autoreleased set option failed exception. * * @param stream The stream for which the option could not be set - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased set option failed exception */ + (instancetype)exceptionWithStream: (OFStream*)stream errNo: (int)errNo; /*! * @brief Initializes an already allocated set option failed exception. * * @param stream The stream for which the option could not be set - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized set option failed exception */ - initWithStream: (OFStream*)stream errNo: (int)errNo; @@ -61,11 +61,11 @@ * @return The stream for which the option could not be set */ - (OFStream*)stream; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end Index: src/exceptions/OFStatItemFailedException.h ================================================================== --- src/exceptions/OFStatItemFailedException.h +++ src/exceptions/OFStatItemFailedException.h @@ -45,11 +45,11 @@ /*! * @brief Creates a new, autoreleased stat item failed exception. * * @param path A string with the path of the item whose status could not be * retrieved - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return A new, autoreleased stat item failed exception */ + (instancetype)exceptionWithPath: (OFString*)path errNo: (int)errNo; @@ -65,11 +65,11 @@ /*! * @brief Initializes an already allocated stat item failed exception. * * @param path A string with the path of the item whose status could not be * retrieved - * @param errNo The errno of the error + * @param errNo The errno of the error that occurred * @return An initialized stat item failed exception */ - initWithPath: (OFString*)path errNo: (int)errNo; @@ -81,11 +81,11 @@ * retrieved */ - (OFString*)path; /*! - * @brief Returns the errno from when the exception was created. + * @brief Returns the errno of the error that occurred. * - * @return The errno from when the exception was created + * @return The errno of the error that occurred */ - (int)errNo; @end