All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jgrapht.io.ExportException Maven / Gradle / Ivy

/*
 * (C) Copyright 2016-2017, by Dimitrios Michail and Contributors.
 *
 * JGraphT : a free Java graph-theory library
 *
 * This program and the accompanying materials are dual-licensed under
 * either
 *
 * (a) the terms of the GNU Lesser General Public License version 2.1
 * as published by the Free Software Foundation, or (at your option) any
 * later version.
 *
 * or (per the licensee's choosing)
 *
 * (b) the terms of the Eclipse Public License v1.0 as published by
 * the Eclipse Foundation.
 */
package org.jgrapht.io;

/**
 * An exception that the library throws in case of graph export errors.
 */
public class ExportException
    extends
    Exception
{
    private static final long serialVersionUID = 1L;

    /**
     * Constructs an {@code ExportException} with {@code null} as its error detail message.
     */
    public ExportException()
    {
        super();
    }

    /**
     * Constructs an {@code ExportException} with the specified detail message.
     *
     * @param message The detail message (which is saved for later retrieval by the
     *        {@link #getMessage()} method)
     */
    public ExportException(String message)
    {
        super(message);
    }

    /**
     * Constructs an {@code ExportException} with the specified detail message and cause.
     *
     * 

* Note that the detail message associated with {@code cause} is not automatically * incorporated into this exception's detail message. * * @param message The detail message (which is saved for later retrieval by the * {@link #getMessage()} method) * * @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 is nonexistent or * unknown.) */ public ExportException(String message, Throwable cause) { super(message, cause); } /** * Constructs an {@code ExportException} with the specified cause and a detail message of * {@code (cause==null ? null : cause.toString())} (which typically contains the class and * detail message of {@code cause}). This constructor is useful for IO exceptions that are * little more than wrappers for other throwables. * * @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 is nonexistent or * unknown.) * */ public ExportException(Throwable cause) { super(cause); } } // End ExportException.java





© 2015 - 2024 Weber Informatics LLC | Privacy Policy