例外を生成するコードがいくつかありますがbouncycastle
、try catchで囲んでも、catchステートメントでこのエラーが発生します。
incompatible types
required: java.lang.Throwable
found: org.bouncycastle.crypto.DataLengthException
これが私のコードです:
int decryptedLength;
try {
decryptedLength = cipher.processBytes(cipherBytes, 0, cipherBytes.length, decryptedBytes, 0);
} catch (DataLengthException ex) {
}
catchステートメントは例外を受け入れません。これを解決するにはどうすればよいですか?