Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialise method is not marked as throw, and no error models exist #1

Closed
jasonconnery opened this issue Jul 8, 2022 · 2 comments
Closed

Comments

@jasonconnery
Copy link

Hi there. the docs at https://docs.tryterra.co/reference/terra-ios-package say the following about initialisation:

Please note this initialisation can fail by throwing the following errors: TerraError.HealthKitUnavailable, TerraError.UnexpectedError. Catch them and handle appropriately instead of forcing try!

However neither of these error models appear to exist currently.

Also terra.initConnection is not labelled as throwing, and results in a warning: No calls to throwing functions occur within 'try' expression

Attempting to call initConnection results in a fatalError , that cannot be caught and handled.

@jasonconnery jasonconnery changed the title Initialise nethod is not marked as throw, and no error models exist Initialise method is not marked as throw, and no error models exist Jul 8, 2022
@jasonconnery
Copy link
Author

More information on the fatal error when calling initConnection:

TerraiOS/Connections.swift:24: Fatal error

@elliottyu19
Copy link
Member

Ahh sorry for the out of date docs! The docs should be all up to date now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants