NativeCrypto: allow default exceptions

Re-arrange the exception-throwing code to allow functions to pass in a
default exception type instead of always throwing RuntimeException when
a reason code doesn't match exactly with an exception type.

Bug: 20488918
Change-Id: I557def7bbcfb164d2c781e0303431ff7a7793086
1 file changed