mirror of
https://github.com/DerTyp7/lf05-java.git
synced 2025-10-29 20:42:11 +01:00
27 lines
499 B
Java
27 lines
499 B
Java
package nogard.schritt5;
|
|
|
|
/**
|
|
* Die Exceptionklasse, die geworfen wird, wenn ein Gegenstand nicht vorhanden ist.
|
|
*/
|
|
public class GegenstandNichtVorhandenException extends Exception {
|
|
|
|
private String meldung;
|
|
|
|
/**
|
|
* Konstruktor.
|
|
* @param meldung Die Fehlermeldung.
|
|
*/
|
|
public GegenstandNichtVorhandenException(String meldung) {
|
|
this.meldung = meldung;
|
|
}
|
|
|
|
/* (non-Javadoc)
|
|
* @see java.lang.Throwable#getMessage()
|
|
*/
|
|
@Override
|
|
public String getMessage() {
|
|
return meldung;
|
|
}
|
|
|
|
}
|