View Javadoc

1   package cz.cuni.amis.utils.exception;
2   
3   import java.util.logging.Logger;
4   
5   /**
6    * Ancestor of all communication exception that might arise from the Pogamut platform. Used
7    * when dealing with classes like Socket / Reader / Writer etc.
8    * @author Jimmy
9    */
10  @SuppressWarnings("serial")
11  public class PogamutIOException extends PogamutException {
12  	
13  	/**
14  	 * Constructs a new exception with the specified detail message.
15  	 * <p><p>
16  	 * Not logging anything anywhere on its own.
17  	 * 
18  	 * @param message
19  	 * @param origin which object does produced the exception
20  	 */
21  	public PogamutIOException(String message, Object origin) {
22  		super(message, origin);
23  	}
24  	
25  	/**
26  	 * Constructs a new exception with the specified detail message.
27  	 * <p><p>
28  	 * Not logging anything anywhere on its own.
29  	 * 
30  	 * @param message
31  	 * @param cause
32  	 */
33  	public PogamutIOException(String message, Throwable cause) {
34  		super(message, cause);
35  	}
36  	
37  	/**
38  	 * Constructs a new exception with the specified cause.
39  	 * <p><p>
40  	 * Not logging anything anywhere on its own.
41  	 * 
42  	 * @param cause
43  	 * @param origin
44  	 */
45  	public PogamutIOException(Throwable cause, Object origin) {
46  		super(cause, origin);
47  	}
48  	
49  	/**
50  	 * Constructs a new exception with the specified detail message and cause.
51  	 * <p><p>
52  	 * Not logging anything anywhere on its own.
53  	 * 
54  	 * @param message
55  	 * @param cause
56  	 * @param origin which object does produced the exception
57  	 */
58  	public PogamutIOException(String message, Throwable cause, Object origin) {
59  		super(message, cause, origin);
60  	}
61  
62  	
63  	/**
64  	 * Constructs a new exception with the specified detail message.
65  	 * <p><p>
66  	 * Logs the exception via specified Logger.
67  	 * 
68  	 * @param message
69  	 * @param log
70  	 * @param origin which object does produced the exception
71  	 */
72  	public PogamutIOException(String message, Logger log, Object origin){
73  		super(message, log, origin);
74  	}
75  	
76  	/**
77  	 * Constructs a new exception with the specified detail message and cause.
78  	 * <p><p>
79  	 * Logs the exception via specified Logger.
80  	 * 
81  	 * @param message
82  	 * @param cause
83  	 * @param origin which object does produced the exception
84  	 */
85  	public PogamutIOException(Throwable cause, Logger log, Object origin) {
86  		super(cause, log, origin);
87  	}
88  	
89  	/**
90  	 * Constructs a new exception with the specified detail message and cause.
91  	 * <p><p>
92  	 * Logs the exception via specified Logger.
93  	 * 
94  	 * @param message
95  	 * @param cause
96  	 * @param origin which object does produced the exception
97  	 */
98  	public PogamutIOException(String message, Throwable cause, Logger log, Object origin) {
99  		super(message, cause, log, origin);
100 	}
101 	
102 }