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
|
Line | |
---|
1 | package com.framsticks.util.dispatching; |
---|
2 | |
---|
3 | import com.framsticks.util.ExceptionHandler; |
---|
4 | import com.framsticks.util.FramsticksException; |
---|
5 | |
---|
6 | public 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.