| 1 |
+ |
//---PACKAGE DECLARATION--- |
| 2 |
+ |
package uk.ac.ukc.iscream.util; |
| 3 |
+ |
|
| 4 |
+ |
//---IMPORTS--- |
| 5 |
+ |
|
| 6 |
+ |
/** |
| 7 |
+ |
* This exception is thrown if a "consumer" makes a request |
| 8 |
+ |
* for a queue that does not exist. This should not happen |
| 9 |
+ |
* if the consumer makes proper use of the available queue |
| 10 |
+ |
* management methods. |
| 11 |
+ |
* |
| 12 |
+ |
* @author $Author$ |
| 13 |
+ |
* @version $Id$ |
| 14 |
+ |
*/ |
| 15 |
|
public class InvalidQueueException extends Exception { |
| 16 |
+ |
|
| 17 |
+ |
//---FINAL ATTRIBUTES--- |
| 18 |
+ |
|
| 19 |
+ |
//---STATIC METHODS--- |
| 20 |
+ |
|
| 21 |
+ |
//---CONSTRUCTORS--- |
| 22 |
|
|
| 23 |
+ |
/** |
| 24 |
+ |
* Takes a string containing a message detailing |
| 25 |
+ |
* specifics about the exception. |
| 26 |
+ |
* |
| 27 |
+ |
* @param message the exception specifics |
| 28 |
+ |
*/ |
| 29 |
|
public InvalidQueueException(String message){ |
| 30 |
|
super(message); |
| 31 |
|
} |
| 6 |
– |
|
| 7 |
– |
} |
| 32 |
|
|
| 33 |
+ |
//---PUBLIC METHODS--- |
| 34 |
|
|
| 35 |
+ |
//---PRIVATE METHODS--- |
| 36 |
|
|
| 37 |
+ |
//---ACCESSOR/MUTATOR METHODS--- |
| 38 |
+ |
|
| 39 |
+ |
//---ATTRIBUTES--- |
| 40 |
+ |
|
| 41 |
+ |
//---STATIC ATTRIBUTES--- |
| 42 |
+ |
|
| 43 |
+ |
} |