forked from saoudrizwan/Disk
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56bc53c
commit f1d4e5f
Showing
8 changed files
with
72 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// DiskErrors.h | ||
// Disk | ||
// | ||
// Created by Sven Titgemeyer on 18.10.18. | ||
// Copyright © 2018 Saoud Rizwan. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
/// Domain for Disk Errors. | ||
/// | ||
/// Define Errors in Objective-C to get better Bridging between Swift/Objective-C. | ||
/// Errors are imported as `DiskError` in Swift. | ||
extern NSErrorDomain const DiskErrorDomain; | ||
typedef NS_ERROR_ENUM(DiskErrorDomain, DiskError) { | ||
DiskErrorNoFileFound = 0, | ||
DiskErrorSerialization = 1, | ||
DiskErrorDeserialization = 2, | ||
DiskErrorInvalidFileName = 3, | ||
DiskErrorCouldNotAccessTemporaryDirectory = 4, | ||
DiskErrorCouldNotAccessUserDomainMask = 5, | ||
DiskErrorCouldNotAccessSharedContainer = 6 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// DiskErrors.m | ||
// Disk | ||
// | ||
// Created by Sven Titgemeyer on 18.10.18. | ||
// Copyright © 2018 Saoud Rizwan. All rights reserved. | ||
// | ||
|
||
#import "DiskErrors.h" | ||
|
||
NSErrorDomain const DiskErrorDomain = @"DiskErrorDomain"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters