Tag: exception

Android Don’t Catch Generic Exception

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 }

Tagged with: ,

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

Tagged with: , ,
Top