Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libGDBMS / src / com / hardcode / gdbms / engine / internalExceptions / InternalExceptionCatcher.java @ 1956

History | View | Annotate | Download (883 Bytes)

1
package com.hardcode.gdbms.engine.internalExceptions;
2

    
3
/**
4
 * Internal exception catcher
5
 *
6
 * @author Fernando Gonz?lez Cort?s
7
 */
8
public class InternalExceptionCatcher {
9
        private static InternalExceptionListenerSupport support = new InternalExceptionListenerSupport();
10

    
11
        /**
12
         * patron observer
13
         *
14
         * @param listener DOCUMENT ME!
15
         */
16
        public static void addInternalExceptionListener(InternalExceptionListener listener) {
17
                support.addInternalExceptionListener(listener);
18
        }
19

    
20
        /**
21
         * Notifies the event observers
22
         *
23
         * @param arg0 the event
24
         */
25
        public static void callExceptionRaised(InternalExceptionEvent arg0) {
26
                support.callExceptionRaised(arg0);
27
        }
28

    
29
        /**
30
         * patron observer
31
         *
32
         * @param listener DOCUMENT ME!
33
         */
34
        public static void removeInternalExceptionListener(
35
                InternalExceptionListener listener) {
36
                support.removeInternalExceptionListener(listener);
37
        }
38
}