Smoothie
04/14/2025, 3:20 PMSmoothie
04/14/2025, 4:33 PMdo {
try Library.companion.getInformation()
}
catch let error as NSError {
guard let exception = error.kotlinException as? LibraryException else {
print("Not a LibraryException")
return
}
switch exception {
case is LibraryException.NotInitialized:
print("It is NotInitialized!")
default:
print("Some other LibraryException")
}
}