0,0 → 1,44 |
package ak.kickup.util; |
|
public class ModelException |
extends Exception |
{ |
private Exception chainedException; |
|
public ModelException() |
{ |
this(null, null); |
} |
|
public ModelException(String message) |
{ |
this(message, null); |
} |
|
public ModelException(Exception chainedException) |
{ |
this(null, chainedException); |
} |
|
public ModelException(String message, Exception chainedException) |
{ |
super(message); |
this.chainedException = chainedException; |
} |
|
public Exception getChainedException() |
{ |
return chainedException; |
} |
|
public void setChainedException(Exception chainedException) |
{ |
this.chainedException = chainedException; |
} |
|
public String toString() |
{ |
return super.toString() |
+ (chainedException == null ? "" : "\n" + chainedException.toString()); |
} |
} |