Fixed error handling in DigitalSignature.java.