~dakusui/symfonion/master

« back to all changes in this revision

Viewing changes to src/main/java/net/sourceforge/symfonion/core/ExceptionThrower.java

  • Committer: Hiroshi Ukai
  • Date: 2016-09-30 20:23:57 UTC
  • Revision ID: git-v1:e7b2ea5e7e1629ef56cb6dfc3aa53916f7e1410c
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package net.sourceforge.symfonion.core;
 
2
 
 
3
 
 
4
public class ExceptionThrower {
 
5
 
 
6
        public static void throwJSONException(String msg, Throwable t) throws SymfonionException {
 
7
                throw new SymfonionException(msg, t);
 
8
        }
 
9
 
 
10
        public static void throwDeviceNotFoundException(String devicename) throws SymfonionException {
 
11
                throw new SymfonionException("Device:<" + devicename + "> is not defined.");
 
12
        }
 
13
 
 
14
        public static void throwSyntaxException(String msg, Throwable t) throws SymfonionException {
 
15
                throw new SymfonionException(msg, t);
 
16
        }
 
17
 
 
18
        public static void throwCompilationException(String msg, Throwable e) throws SymfonionException {
 
19
                throw new SymfonionException(msg, e);
 
20
        }
 
21
 
 
22
        public static void throwLoadException(String msg, Throwable e) throws SymfonionException {
 
23
                throw new SymfonionException(msg, e);
 
24
        }
 
25
 
 
26
        public static void throwNoteMapNotFoundException(String msg, Throwable e) throws SymfonionException {
 
27
                throw new SymfonionException(msg, e);
 
28
        }
 
29
 
 
30
        public static void throwNoteNotDefinedException(String msg) throws SymfonionException {
 
31
                throw new SymfonionException(msg);
 
32
        }
 
33
 
 
34
        public static void throwInstrumentNotFound(String msg, Throwable e) throws SymfonionException {
 
35
                throw new SymfonionException(msg);
 
36
        }
 
37
 
 
38
        public static void throwDeviceException(String msg, Throwable e) throws SymfonionException {
 
39
                throw new SymfonionException(e);
 
40
        }
 
41
}
 
 
b'\\ No newline at end of file'