aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/database/exceptions/MissingCredentialsException.java
blob: 2e45526df513781c378a017101e7dc23d6f49ec8 (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
49
50
51
52
/**
 * 
 */
package uk.org.ury.database.exceptions;

/**
 * Exception thrown when the database credentials required to 
 * log into the URY database under a user class are missing, 
 * and thus the log-in cannot continue.
 * 
 * The best practice for handling a MissingCredentialsException 
 * is to attempt to log into the database with a less privileged 
 * user class or, if the credentials for read-only access are 
 * missing, give up.
 * 
 * @author Matt Windsor
 */

public class MissingCredentialsException extends Exception
{
  
  /**
   *
   */
  
  private static final long serialVersionUID = -397479334359858162L;


  /**
   * Construct a new MissingCredentialsException with a 
   * default reason.
   */
  
  public
  MissingCredentialsException ()
  {
    super ("Missing credentials.");
  }
  
  
  /**
   * Construct a new MissingCredentialsException.
   * 
   * @param reason  The explanation for the exception.
   */
  
  public
  MissingCredentialsException (String reason)
  {
    super (reason);
  }
}