1 /* 2 * 3 * Fosstrak LLRP Commander (www.fosstrak.org) 4 * 5 * Copyright (C) 2008 ETH Zurich 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/> 19 * 20 */ 21 22 package org.fosstrak.llrp.client; 23 24 import org.fosstrak.llrp.adaptor.exception.LLRPRuntimeException; 25 26 /** 27 * All exception handlers registered at the AdaptorManagement 28 * need to implement this interface in order to be delivered 29 * with exceptions triggered on the reader level. 30 * @author sawielan 31 * 32 */ 33 public interface LLRPExceptionHandler { 34 35 /** 36 * This method will be called asynchronously whenever 37 * an Exception is triggered. 38 * @param aExceptionType a type-map describing the exception. 39 * @param e the exception itself. 40 * @param aAdapter the adapter that triggered the exception. 41 * @param aReader the reader that triggered the exception. 42 */ 43 public void postExceptionToGUI(LLRPExceptionHandlerTypeMap aExceptionType, LLRPRuntimeException e, String aAdapter, String aReader); 44 }