Skip to content

Commit d147e0f

Browse files
committed
Add AndroidLooperError
1 parent d54c2bc commit d147e0f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Sources/AndroidLooper/Error.swift

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//
2+
// Error.swift
3+
// SwiftAndroid
4+
//
5+
// Created by Alsey Coleman Miller on 7/6/25.
6+
//
7+
8+
import SystemPackage
9+
10+
/// Android Looper Error
11+
public enum AndroidLooperError: Swift.Error {
12+
13+
/// Underlying Bionic Error
14+
case bionic(Errno)
15+
16+
case addFileDescriptor(FileDescriptor)
17+
18+
/// Unable to remove the file descriptor.
19+
case removeFileDescriptor(FileDescriptor)
20+
21+
/// File Descriptor not registered
22+
case fileDescriptorNotRegistered(FileDescriptor)
23+
24+
/// Poll Timeout
25+
case pollTimeout
26+
27+
/// Poll Error
28+
case pollError
29+
}

0 commit comments

Comments
 (0)