1 package org.lsst.ccs.command;
2
3 import java.lang.reflect.InvocationTargetException;
4
5
6
7
8
9
10 public class CommandInvocationException extends Exception {
11
12 public CommandInvocationException(String message, Throwable t, Object... args) {
13 super(String.format(message, args),t);
14 }
15
16 public CommandInvocationException(String message, Object... args) {
17 super(String.format(message, args));
18 }
19
20 public CommandInvocationException(String message, Throwable t) {
21 super(message, t);
22 }
23
24 public CommandInvocationException(InvocationTargetException t) {
25 super(t.getTargetException().toString(), t.getTargetException());
26 }
27
28 }