/src/mpv5/db/common/NodataFoundException.java
http://mp-rechnungs-und-kundenverwaltung.googlecode.com/ · Java · 51 lines · 14 code · 5 blank · 32 comment · 0 complexity · 3f2a9786dbe000392a0eaa069dcf1525 MD5 · raw file
- /*
- * This file is part of YaBS.
- *
- * YaBS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * YaBS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with YaBS. If not, see <http://www.gnu.org/licenses/>.
- */
- package mpv5.db.common;
- import mpv5.globals.Messages;
- /**
- * Thrown if no matching data was found, the resultset is empty
- *
- */
- public class NodataFoundException extends Exception {
- private static final long serialVersionUID = 1L;
- /**
- *
- */
- public NodataFoundException() {
- super(Messages.NO_DATA_FOUND.toString());
- }
- /**
- *
- * @param context
- */
- public NodataFoundException(Context context) {
- super(Messages.NO_DATA_FOUND.toString() + " in Context: " + context);
- }
- /**
- *
- * @param context
- * @param id
- */
- public NodataFoundException(Context context, long id) {
- super(Messages.NO_DATA_FOUND.toString() + " in Context: " + context + " with id: " + id);
- }
- }