source: java/main/src/main/java/com/framsticks/util/dispatching/ThrowExceptionHandler.java @ 193

Last change on this file since 193 was 193, checked in by Maciej Komosinski, 10 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
File size: 532 bytes
Line 
1package com.framsticks.util.dispatching;
2
3import com.framsticks.util.ExceptionHandler;
4import com.framsticks.util.FramsticksException;
5
6public class ThrowExceptionHandler implements ExceptionHandler {
7
8        private static final ThrowExceptionHandler instance = new ThrowExceptionHandler();
9
10        private ThrowExceptionHandler() {
11        }
12
13        @Override
14        public final void handle(FramsticksException exception) {
15                throw exception;
16        }
17
18        /**
19         * @return the instance
20         */
21        public static ThrowExceptionHandler getInstance() {
22                return instance;
23        }
24
25}
Note: See TracBrowser for help on using the repository browser.