Middle Europe Productions Library  alpha 1.3.3
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
MEP::ResourceException Struct Reference

Resource exception structure. More...

#include <ResourceException.h>

Public Types

enum  ExceptionType {
  ExceptionType::IncorrectType, ExceptionType::ResourceAlreadyExists, ExceptionType::WrongResourceConstructor, ExceptionType::ObjectNotFound,
  ExceptionType::GroupNotFound, ExceptionType::CouldntLoadFont, ExceptionType::CouldntLoad
}
 

Public Member Functions

 ResourceException (const std::string &name, const std::string &msg, const ExceptionType &type)
 
 ResourceException (const char *name, const char *msg, const ExceptionType &type)
 

Public Attributes

const ExceptionType exceptionType
 
const std::string ResourceName
 
const std::string Message
 

Friends

std::ostream & operator<< (std::ostream &out, const ResourceException &x)
 

Detailed Description

Resource exception structure.

Member Enumeration Documentation

◆ ExceptionType

Enumerator
IncorrectType 
ResourceAlreadyExists 
WrongResourceConstructor 
ObjectNotFound 
GroupNotFound 
CouldntLoadFont 
CouldntLoad 

Constructor & Destructor Documentation

◆ ResourceException() [1/2]

MEP::ResourceException::ResourceException ( const std::string &  name,
const std::string &  msg,
const ExceptionType type 
)
inlineexplicit

explicit contructor

Parameters
[in]name: Name of the MEP::Object.
[in]msg: Description of an error.
[in]type: MEP::ResourceException::ExceptionType

◆ ResourceException() [2/2]

MEP::ResourceException::ResourceException ( const char *  name,
const char *  msg,
const ExceptionType type 
)
inlineexplicit

explicit contructor

Parameters
[in]name: Name of the MEP::Object.
[in]msg: Description of an error.
[in]type: MEP::ResourceException::ExceptionType

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const ResourceException x 
)
friend

Overloading the << operator.

Member Data Documentation

◆ exceptionType

const ExceptionType MEP::ResourceException::exceptionType

◆ Message

const std::string MEP::ResourceException::Message

◆ ResourceName

const std::string MEP::ResourceException::ResourceName