| 1 |
package org.astrogrid.samp.client; |
| 2 |
|
| 3 |
import java.io.IOException; |
| 4 |
|
| 5 |
/** |
| 6 |
* Exception thrown when some error occurs in SAMP processing. |
| 7 |
* Note that this is a subclass of {@link java.io.IOException}. |
| 8 |
* |
| 9 |
* @author Mark Taylor |
| 10 |
* @since 15 Jul 2008 |
| 11 |
*/ |
| 12 |
public class SampException extends IOException { |
| 13 |
|
| 14 |
/** |
| 15 |
* Constructs an exception with no message. |
| 16 |
*/ |
| 17 |
public SampException() { |
| 18 |
super(); |
| 19 |
} |
| 20 |
|
| 21 |
/** |
| 22 |
* Consructs an exception with a given message. |
| 23 |
* |
| 24 |
* @param msg message |
| 25 |
*/ |
| 26 |
public SampException( String msg ) { |
| 27 |
super( msg ); |
| 28 |
} |
| 29 |
|
| 30 |
/** |
| 31 |
* Constructs an exception with a given cause. |
| 32 |
* |
| 33 |
* @param cause cause of this exception |
| 34 |
*/ |
| 35 |
public SampException( Throwable cause ) { |
| 36 |
this(); |
| 37 |
initCause( cause ); |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* Constructs an exception with a given message and cause. |
| 42 |
* |
| 43 |
* @param msg message |
| 44 |
* @param cause cause of this exception |
| 45 |
*/ |
| 46 |
public SampException( String msg, Throwable cause ) { |
| 47 |
this( msg ); |
| 48 |
initCause( cause ); |
| 49 |
} |
| 50 |
} |