summaryrefslogtreecommitdiff
path: root/swift/src/Ice/Object.swift
diff options
context:
space:
mode:
Diffstat (limited to 'swift/src/Ice/Object.swift')
-rw-r--r--swift/src/Ice/Object.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/swift/src/Ice/Object.swift b/swift/src/Ice/Object.swift
index 8fde3038073..0bda967e50a 100644
--- a/swift/src/Ice/Object.swift
+++ b/swift/src/Ice/Object.swift
@@ -88,19 +88,19 @@ public extension Object {
public class DefaultObjectImpl<T: InterfaceTraits>: Object {
public init() {}
- public func ice_id(current _: Current) -> String {
+ public func ice_id(current _: Current) throws -> String {
return T.staticId
}
- public func ice_ids(current _: Current) -> [String] {
+ public func ice_ids(current _: Current) throws -> [String] {
return T.staticIds
}
- public func ice_isA(s: String, current _: Current) -> Bool {
+ public func ice_isA(s: String, current _: Current) throws -> Bool {
return T.staticIds.contains(s)
}
- public func ice_ping(current _: Current) {
+ public func ice_ping(current _: Current) throws {
// Do nothing
}
}