File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Sources/ATProtoKit/Errors Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import Foundation
9
9
10
+ public protocol ATProtoError : Error { }
11
+
10
12
/// The base exception class for ATProtoKit.
11
- public enum ATProtoError : Error , Decodable {
13
+ public enum ATAPIError : ATProtoError , Decodable {
12
14
/// Represents a bad request error (HTTP 400) with an associated message.
13
15
/// - Parameter message: The message received along side the error.
14
16
case badRequest( message: String ) // Error 400
@@ -105,3 +107,9 @@ public enum ATProtoError: Error, Decodable {
105
107
case message
106
108
}
107
109
}
110
+
111
+ /// An error type related to ``ATImageProcessable``..
112
+ enum ATImageProcessingError : ATProtoError {
113
+ /// The image's file size can't be lowered any further to fit the target file size.
114
+ case unableToResizeImage
115
+ }
You can’t perform that action at this time.
0 commit comments