1 6 21 22 package de.schlichtherle.util.zip; 23 24 import java.util.zip.ZipException ; 25 26 35 public class CRC32Exception extends ZipException { 36 37 final long expectedCrc, actualCrc; 38 39 47 CRC32Exception(String entryName, long expectedCrc, long actualCrc) { 48 super(entryName); 49 assert expectedCrc != actualCrc; 50 this.expectedCrc = expectedCrc; 51 this.actualCrc = actualCrc; 52 } 53 54 57 public long getExpectedCrc() { 58 return expectedCrc; 59 } 60 61 65 public long getActualCrc() { 66 return actualCrc; 67 } 68 } 69 | Popular Tags |