anfo  1.0
Public Types | Public Member Functions | Private Attributes | List of all members
anfo::Exception Class Reference

The exception class of the anfo library. More...

#include <Exception.h>

Collaboration diagram for anfo::Exception:
Collaboration graph

Public Types

enum  {
  ID_NOT_ANFO = 1, ID_VALUE_ERROR, ID_INVALID_TYPE, ID_ANIME_MARK,
  ID_SEASON_MARK
}
 

Public Member Functions

 Exception (unsigned int _id, std::string _desc)
 
unsigned int getId ()
 
std::string getDescription ()
 

Private Attributes

unsigned int id
 
std::string desc
 

Detailed Description

The exception class of the anfo library.

If something goes wrong, all classes can throw an anfo::Exception.
You can use getId() and getDescription() to get more specific information about the exception.

Definition at line 22 of file Exception.h.

Member Enumeration Documentation

anonymous enum
Enumerator
ID_NOT_ANFO 
ID_VALUE_ERROR 
ID_INVALID_TYPE 
ID_ANIME_MARK 
ID_SEASON_MARK 

Definition at line 28 of file Exception.h.

Constructor & Destructor Documentation

anfo::Exception::Exception ( unsigned int  _id,
std::string  _desc 
)

Member Function Documentation

std::string anfo::Exception::getDescription ( )
unsigned int anfo::Exception::getId ( )

Member Data Documentation

std::string anfo::Exception::desc
private

Definition at line 26 of file Exception.h.

unsigned int anfo::Exception::id
private

Definition at line 25 of file Exception.h.


The documentation for this class was generated from the following file: