![JAR search and dependency download from the Maven repository](/logo.png)
javapns.devices.exceptions.UnknownDeviceException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javapns Show documentation
Show all versions of javapns Show documentation
JavaPNS branch with refactoring of org.json package to a javapns.json pacakge
The newest version!
package javapns.devices.exceptions;
/**
* Thrown when we try to retrieve a device that doesn't exist
* @author Maxime Peron
*
*/
@SuppressWarnings("serial")
public class UnknownDeviceException extends Exception{
/* Custom message for this exception */
private String message;
/**
* Constructor
*/
public UnknownDeviceException(){
this.message = "Unknown client";
}
/**
* Constructor with custom message
* @param message
*/
public UnknownDeviceException(String message){
this.message = message;
}
/**
* String representation
*/
public String toString(){
return this.message;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy