Oficina Framework  1.3
Games Framework
OficinaFramework::InvalidAssetException Class Reference

Exception for asset importing errors. More...

#include <OficinaExceptions.hpp>

Inheritance diagram for OficinaFramework::InvalidAssetException:
OficinaFramework::OficinaException

Public Member Functions

 InvalidAssetException ()
 Instantiates the exception with default error message. More...
 
 InvalidAssetException (std::string message)
 Instantiates the exception with a given error message. More...
 
 InvalidAssetException (std::string message, std::string assetname)
 Instantiates the exception with a given error message. Also identifies the asset with errors. More...
 
std::string GetAssetName ()
 A string containing the asset name or path. More...
 
std::string GetMessageAndAssetName ()
 A string containing the message and the asset name. More...
 
virtual const char * what () const throw ()
 Returns the message and troubling asset name for the actual system exception display. More...
 
- Public Member Functions inherited from OficinaFramework::OficinaException
 OficinaException ()
 Instantiates the exception with default error message. More...
 
 OficinaException (std::string message)
 Instantiates the exception with a given error message. More...
 
std::string GetMessage ()
 Gets the exception message. More...
 

Additional Inherited Members

- Protected Attributes inherited from OficinaFramework::OficinaException
std::string message
 

Detailed Description

Exception for asset importing errors.

Constructor & Destructor Documentation

◆ InvalidAssetException() [1/3]

OficinaFramework::InvalidAssetException::InvalidAssetException ( )
inline

Instantiates the exception with default error message.

◆ InvalidAssetException() [2/3]

OficinaFramework::InvalidAssetException::InvalidAssetException ( std::string  message)
inline

Instantiates the exception with a given error message.

Parameters
messageThe message to be set to the exception.

◆ InvalidAssetException() [3/3]

OficinaFramework::InvalidAssetException::InvalidAssetException ( std::string  message,
std::string  assetname 
)
inline

Instantiates the exception with a given error message. Also identifies the asset with errors.

Parameters
messageThe message to be set to the exception.
assetnameThe path or name of the problematic asset.

Member Function Documentation

◆ GetAssetName()

std::string OficinaFramework::InvalidAssetException::GetAssetName ( )

A string containing the asset name or path.

Returns
Name or path of the problematic asset.

◆ GetMessageAndAssetName()

std::string OficinaFramework::InvalidAssetException::GetMessageAndAssetName ( )

A string containing the message and the asset name.

Returns
Exception message, plus the problematic asset name.

◆ what()

virtual const char* OficinaFramework::InvalidAssetException::what ( ) const
throw (
)
inlinevirtual

Returns the message and troubling asset name for the actual system exception display.

Returns
See also
GetMessageAndAssetName

Reimplemented from OficinaFramework::OficinaException.

References OficinaFramework::OficinaException::message.


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