+ enum Code
+ {
+ NONE = 0,
+ ALC_INIT, // description
+ FASTEVENTS_INIT, // description
+ FILE_NOT_FOUND, // path of missing file
+ RESOURCE_NOT_FOUND, // name of missing resource
+ SCRIPT_ERROR, // description
+ SDL_INIT, // description
+ SDL_VIDEOMODE, // -
+ UNKNOWN_AUDIO_FORMAT, // name of resource
+ UNKNOWN_IMAGE_FORMAT, // name of resource
+ };
+
+ explicit Error(unsigned code, const std::string& what = "")
+ {
+ init(code, what);
+ }
+ virtual ~Error() throw() {}
+
+ void init(unsigned code, const std::string& what = "")