The exception extends ClassCastException to enable users to have a single handling case, only introducing specific handling of this one if required.
186187188189190191192193194195196
{ SHA512tDigest t = (SHA512tDigest)other; if (this.digestLength != t.digestLength) { throw new MemoableResetException("digestLength inappropriate in other"); } super.copyIn(t); this.H1t = t.H1t;