| 1 | // SPDX-License-Identifier: 0BSD |
| 2 | // SPDX-FileCopyrightText: The XZ for Java authors and contributors |
| 3 | // SPDX-FileContributor: Lasse Collin <[email protected]> |
| 4 | |
| 5 | package org.tukaani.xz; |
| 6 | |
| 7 | /** |
| 8 | * Thrown when the compressed input data is corrupt. |
| 9 | * However, it is possible that some or all of the data |
| 10 | * already read from the input stream was corrupt too. |
| 11 | */ |
| 12 | public class CorruptedInputException extends XZIOException { |
| 13 | private static final long serialVersionUID = 3L; |
| 14 | |
| 15 | /** |
| 16 | * Creates a new CorruptedInputException with |
| 17 | * the default error detail message. |
| 18 | */ |
| 19 | public CorruptedInputException() { |
| 20 | super("Compressed data is corrupt"); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Creates a new CorruptedInputException with |
| 25 | * the specified error detail message. |
| 26 | * |
| 27 | * @param s error detail message |
| 28 | */ |
| 29 | public CorruptedInputException(String s) { |
| 30 | super(s); |
| 31 | } |
| 32 | } |