aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/server/exceptions/BadRequestException.java
blob: 61aa951cbf9a8dd9f00646b14a0fc95b3647724e (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;

/**
 * Exception thrown when the server meets a malformed request, or 
 * part of one.
 * 
 * @author Matt Windsor
 */

public class BadRequestException extends HandlingException
{
  
  /**
   * TODO: Change this!  ---v
   */
  
  private static final long serialVersionUID = -397479334359858162L;


  /**
   * Construct a new BadRequestException with a default reason.
   */
  
  public
  BadRequestException ()
  {
    super ("Bad request.");
  }
  
  
  /**
   * Construct a new HandlerNotFoundException with a chained 
   * exception.
   * 
   * @param cause      The exception that this new exception is to 
   *                   wrap.
   */
  
  public
  BadRequestException (Throwable cause)
  {
    super ("Bad request.  ("
           + cause.getMessage () + ")", cause);
  }
}