Files

42 lines
1.0 KiB
C++

/**
* @file include/ActivMiddleware/ActivBase/CrtException.h
*
* @brief Header file for c runtime exception class.
*/
#if (!defined ACTIV_BASE_CRT_EXCEPTION_H)
#define ACTIV_BASE_CRT_EXCEPTION_H
#include "ActivMiddleware/ActivBase/Exception.h"
//! Activ namespace.
namespace Activ
{
/**
* @brief C runtime exception class.
*
* CrtException encapsulates errors from c run time library calls.
*/
class CrtException : public Exception
{
public:
/**
* @brief Default constructor.
*
* @param file the file which raised the exception.
* @param function the function which raised the exception.
* @param line the line number which raised the exception.
* @param errorCode the exception specific error code.
* @param message the exception message.
*/
ACTIV_BASE_API CrtException(const char *file, const char *function, uint_fast32_t line, const uint_fast32_t errorCode,
const String &message = "");
ACTIV_BASE_API virtual String ToString() const ACTIV_OVERRIDE;
};
} // namespace Activ
#endif // (!defined ACTIV_BASE_CRT_EXCEPTION_H)