mpg::InvalidPasswordException Class Reference

#include <InvalidPasswordException.hh>

List of all members.


Detailed Description

Exception thrown when an invalid password is given, such as an invalid character (outside the Metroid alphabet), invalid checksum, or invalid password length.

Definition at line 42 of file InvalidPasswordException.hh.

Public Member Functions

 InvalidPasswordException (const std::string &message, enum PasswordError error)
 Creates a new InvalidPasswordException.
enum PasswordError getError () const
 Gets the error that triggered this InvalidPasswordException.

Private Attributes

enum PasswordError error


Constructor & Destructor Documentation

mpg::InvalidPasswordException::InvalidPasswordException ( const std::string &  message,
enum PasswordError  error 
) [inline]

Creates a new InvalidPasswordException.

Parameters:
message The error messsage.
error The password error.

Definition at line 64 of file InvalidPasswordException.hh.


Member Function Documentation

enum PasswordError mpg::InvalidPasswordException::getError (  )  const [inline]

Gets the error that triggered this InvalidPasswordException.

Returns:
The error.

Definition at line 67 of file InvalidPasswordException.hh.


Member Data Documentation

enum PasswordError mpg::InvalidPasswordException::error [private]

Definition at line 44 of file InvalidPasswordException.hh.


Generated on Tue Feb 20 14:39:07 2007 for Metroid Password Generator by  doxygen 1.5.1-p1