aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/server/exceptions/HandlingException.java
blob: 2ce681b7b8469fc09a79d750e9c2d1f39c29c2d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
 * 
 */
package uk.org.ury.server.exceptions;

/**
 * Generic exception thrown when the server cannot handle a request.
 * 
 * @author Matt Windsor
 */

public class HandlingException extends Exception
{
  /**
   * TODO: Change this!  ---v
   */
  
  private static final long serialVersionUID = -397479334359858162L;
  
  
  /**
   * Construct a HandlingException with a reason.
   * 
   * @param string  The reason to present.
   */
  
  public
  HandlingException (String string)
  {
    super (string);
  }

  
  /**
   * Construct a HandlingException with a reason and a cause to
   * chain.
   * 
   * @param string  The reason to present.
   * 
   * @param cause   The thrown cause that this exception should wrap.
   */
  
  public
  HandlingException (String string, Throwable cause)
  {
    super (string, cause);
  }
}