| 1 |
|
package com.smartwerkz.jupload.classic.config.params; |
| 2 |
|
|
| 3 |
|
import com.smartwerkz.jupload.classic.config.Messages; |
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
public class ParameterException extends Exception { |
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
private static final long serialVersionUID = 1L; |
| 14 |
0 |
public final Parameter param; |
| 15 |
0 |
|
| 16 |
|
public ParameterException(Parameter p) { |
| 17 |
0 |
this(p, ""); |
| 18 |
0 |
} |
| 19 |
0 |
|
| 20 |
|
public ParameterException(Parameter p, String msg, ParameterException e, Object param) { |
| 21 |
0 |
this(p, Messages.get(msg, new Object[] { param, e.getMessage() } )); |
| 22 |
0 |
} |
| 23 |
0 |
|
| 24 |
0 |
public ParameterException(Parameter p, String msg) { |
| 25 |
0 |
super(msg); |
| 26 |
0 |
param = p; |
| 27 |
0 |
} |
| 28 |
|
} |