Package org.firebirdsql.gds.ng.listeners
Interface ExceptionListenable
-
- All Known Subinterfaces:
FbAttachment,FbBlob,FbDatabase,FbService,FbStatement,FbTransaction,FbWireAttachment,FbWireBlob,FbWireDatabase,FbWireService,FbWireStatement,FbWireTransaction,JnaAttachment
- All Known Implementing Classes:
AbstractFbAttachment,AbstractFbBlob,AbstractFbDatabase,AbstractFbService,AbstractFbStatement,AbstractFbTransaction,AbstractFbWireBlob,AbstractFbWireDatabase,AbstractFbWireInputBlob,AbstractFbWireOutputBlob,AbstractFbWireService,AbstractFbWireStatement,JnaBlob,JnaDatabase,JnaService,JnaStatement,JnaTransaction,V10Database,V10InputBlob,V10OutputBlob,V10Service,V10Statement,V10Transaction,V11Database,V11Statement,V12Database,V12Statement,V13Database,V13Statement,V15Database,V16Database,V16Statement
public interface ExceptionListenableProvides notification of exceptions toExceptionListenerinstance.Implementations are required to use
WeakReferenceto hold the listener. It is strongly suggested to useExceptionListenerDispatcherin your implementation.- Since:
- 3.0
- Author:
- Mark Rotteveel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddExceptionListener(ExceptionListener listener)Adds an exception listener to this object.voidremoveExceptionListener(ExceptionListener listener)Removes an exception listener to this object.
-
-
-
Method Detail
-
addExceptionListener
void addExceptionListener(ExceptionListener listener)
Adds an exception listener to this object.Implementations use
WeakReference.- Parameters:
listener- Listener to register
-
removeExceptionListener
void removeExceptionListener(ExceptionListener listener)
Removes an exception listener to this object.- Parameters:
listener- Listener to remove
-
-