![JAR search and dependency download from the Maven repository](/logo.png)
org.bff.javampd.exception.MPDResponseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javampd Show documentation
Show all versions of javampd Show documentation
A Java API for controlling the Music Player Daemon (MPD)
/*
* 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