1 /*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved. 5 * 6 */ 7 8 package com.sleepycat.je.log; 9 10 /** 11 * Indicates that a checksum validation failed. A checked exception is used so 12 * it can be caught and handled internally in some cases. When not handled 13 * internally, it is wrapped with an EnvironmentFailureException with 14 * EnvironmentFailureReason.LOG_CHECKSUM before being propagated through the 15 * public API. 16 */ 17 public class ChecksumException extends Exception { 18 19 private static final long serialVersionUID = 1; 20 ChecksumException(String message)21 public ChecksumException(String message) { 22 super(message); 23 } 24 ChecksumException(String message, Exception e)25 public ChecksumException(String message, Exception e) { 26 super(message, e); 27 } 28 } 29