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 */
019
020package org.apache.commons.compress.harmony.pack200;
021
022import org.apache.commons.compress.CompressException;
023
024/**
025 * Signals a problem with a Pack200 coding or decoding issue.
026 */
027public class Pack200Exception extends CompressException {
028
029    private static final long serialVersionUID = 5168177401552611803L;
030
031    /**
032     * Constructs an {@code Pack200Exception} with the specified detail message.
033     *
034     * @param message The detail message (which is saved for later retrieval by the {@link #getMessage()} method)
035     */
036    public Pack200Exception(final String message) {
037        super(message);
038    }
039
040    /**
041     * Constructs an {@code Pack200Exception} with the specified detail message and cause.
042     * <p>
043     * Note that the detail message associated with {@code cause} is <i>not</i> automatically incorporated into this exception's detail message.
044     * </p>
045     *
046     * @param message The detail message (which is saved for later retrieval by the {@link #getMessage()} method)
047     *
048     * @param cause   The cause (which is saved for later retrieval by the {@link #getCause()} method). (A null value is permitted, and indicates that the cause
049     *                is nonexistent or unknown.)
050     *
051     * @since 1.28.0
052     */
053    public Pack200Exception(final String message, final Throwable cause) {
054        super(message, cause);
055    }
056}