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

Last change on this file 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
RevLine 
[97]1package com.framsticks.util.dispatching;
2
[105]3import com.framsticks.util.ExceptionHandler;
[97]4import com.framsticks.util.FramsticksException;
5
[105]6public class ThrowExceptionHandler implements ExceptionHandler {
[97]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.