AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Aire::Error Class Reference

#include <error.h>

Inheritance diagram for Aire::Error:
Inheritance graph
[legend]
Collaboration diagram for Aire::Error:
Collaboration graph
[legend]

Public Member Functions

 Error (const char *msg,...)
 
const charwhat () const noexcept override
 

Detailed Description

A custom exception class that supports std::printf()-like formatting. Example usage:

throw Error("someFunc() returned %i", returnVal);

Constructor & Destructor Documentation

◆ Error()

Error::Error ( const char * msg,
... )

Error constructor.

Parameters
msgThe error message. Supports std::printf()-like formatting by passing additional parameters. Max length is 1024 characters.

Member Function Documentation

◆ what()

const char * Error::what ( ) const
overridenoexcept
Returns
The error message for this exception.

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