OneEntry Platform 2.0.1 Help

System

Kotlin Multiplatform

test 404

try { SystemService.test404() } catch (e: OneEntryException.NotFoundException) { }

test 500

try { SystemService.test500() } catch (e: OneEntryException.InternalServerException) { }

Swift

test 404

do { try await SystemService.shared.test404() } catch let error as NSError { let exception = error.kotlinException as? OneEntryException.NotFoundException }

test 500

do { try await SystemService.shared.test500() } catch let error as NSError { let exception = error.kotlinException as? OneEntryException.InternalServerException }
Last modified: 18 February 2025