Error reporting

  1. 5 years ago

    Hello everyone,
    This is one of the first posts in this community, i hope this community grows very fast and healthy... So, good luck :)

    My question is, how i can make error reporting on swift if this no have exceptions? I will need to use return -1 ????

  2. niutech

    5 Jun 2014 Administrator

    You should use enum.

    Source: StackOverflow

or Sign Up to reply!