001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * https://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019package org.apache.commons.compress.compressors; 020 021import org.apache.commons.compress.CompressException; 022 023/** 024 * Signals that an Compressor exception of some sort has occurred. 025 */ 026public class CompressorException extends CompressException { 027 028 /** Serial. */ 029 private static final long serialVersionUID = -2932901310255908814L; 030 031 /** 032 * Constructs a new exception with the specified detail message. The cause is not initialized. 033 * 034 * @param message The message (which is saved for later retrieval by the {@link #getMessage()} method). 035 */ 036 public CompressorException(final String message) { 037 super(message); 038 } 039 040 /** 041 * Constructs a new exception with the specified detail message and cause. 042 * 043 * @param message The message (which is saved for later retrieval by the {@link #getMessage()} method) 044 * @param cause The cause (which is saved for later retrieval by the {@link #getCause()} method). A null indicates that the cause is nonexistent or 045 * unknown. 046 */ 047 public CompressorException(final String message, final Throwable cause) { 048 super(message, cause); 049 } 050}