Sometimes it is tempting to be lazy when catching exceptions and do something like this: try { someComplicatedIOFunction(); // may throw IOException someComplicatedParsingFunction(); // may throw ParsingException someComplicatedSecurityFunction(); // may throw SecurityException // phew, made it all the way } catch (Exception e) { // I’ll just catch all exceptions handleError(); // with one generic
Tag: exception
Xcode Terminating App Due To Uncaught Exception ‘NSUnknownKeyException’
When running iOS in Xcode you might run into this error: Terminating App Due To Uncaught Exception ‘NSUnknownKeyException’ To fix this go to iOS Simulator > Reset Content and Setting