uk.org.ury.database.exceptions
Class MissingCredentialsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by uk.org.ury.database.exceptions.MissingCredentialsException
All Implemented Interfaces:
java.io.Serializable

public class MissingCredentialsException
extends java.lang.Exception

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
See Also:
Serialized Form

Constructor Summary
MissingCredentialsException()
          Construct a new MissingCredentialsException with a default reason.
MissingCredentialsException(java.lang.String reason)
          Construct a new MissingCredentialsException.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MissingCredentialsException

public MissingCredentialsException()
Construct a new MissingCredentialsException with a default reason.


MissingCredentialsException

public MissingCredentialsException(java.lang.String reason)
Construct a new MissingCredentialsException.

Parameters:
reason - The explanation for the exception.