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

org.bff.javampd.exception.MPDResponseException Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
/*
 * MPDResponseException.java
 *
 * Created on January 9, 2006, 3:32 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.bff.javampd.exception;

/**
 * Represents an error with the MPD response.
 *
 * @author Bill
 * @version 1.0
 */
public class MPDResponseException extends MPDException {
    private final String command;

    /**
     * Constructor.
     */
    public MPDResponseException() {
        super();
        this.command = null;
    }

    /**
     * Class constructor specifying the message.
     *
     * @param message the exception message
     */
    public MPDResponseException(String message) {
        super(message);
        this.command = null;
    }

    /**
     * Class constructor specifying the message and command generating the
     * error.
     *
     * @param message the exception message
     * @param command the command generating the exception
     */
    public MPDResponseException(String message, String command) {
        super(message);
        this.command = command;
    }

    /**
     * Class constructor specifying the message and command generating the
     * error.
     *
     * @param message the exception message
     * @param command the command generating the exception
     * @param cause   the cause of the exception
     */
    public MPDResponseException(String message, String command, Throwable cause) {
        super(message, cause);
        this.command = command;
    }

    /**
     * Class constructor specifying the cause.
     *
     * @param cause the cause of this exception
     */
    public MPDResponseException(Throwable cause) {
        super(cause);
        this.command = null;
    }

    /**
     * Class constructor specifying the message and cause.
     *
     * @param message the exception message
     * @param cause   the cause of this exception
     */
    public MPDResponseException(String message, Throwable cause) {
        super(message, cause);
        this.command = null;
    }

    public String getCommand() {
        return command;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy