fatalError(@autoclosure message: () -> String = default, file: StaticString = default, line: UInt = default)
E.G.
fatalError("You did something dumb.");
and it accomplishes the same thing (tells me I have done something stupid), but now the debugger stops on that line of code so I remember exactly what I have done.
exit(int), don't use it.
By the way, this is something that only a developer could do, clearly this would not be the way to handle an unexpected user condition.
By the way, this is something that only a developer could do, clearly this would not be the way to handle an unexpected user condition.
No comments:
Post a Comment