Lumiera  0.pre.03
»edit your freedom«
exception-error-test.cpp File Reference

Go to the source code of this file.

Description

unit test ExceptionError_test

Definition in file exception-error-test.cpp.

#include "lib/error.h"
#include "lib/error.hpp"
#include "lib/test/run.hpp"
#include "lib/format-cout.hpp"
#include "lib/util.hpp"
#include <exception>
#include <stdexcept>
#include <string>

Classes

class  ExceptionError_test
 Some aspects of C++ exception handling. More...
 
class  ExceptionError_test::SpecificError
 a very specific Exception class local to this scope and with additional behaviour. More...
 

Typedefs

using DerivedError = error::LumieraError< LUMIERA_ERROR_DERIVED, error::External >
 define a specific Error subclass derived from error::external
 

Functions

 LAUNCHER (ExceptionError_test, "function common")
 register this test class... More...
 
 LUMIERA_ERROR_DECLARE (DERIVED)
 local specific error-constant for use in the constructor of the nested SpecificError class.
 
 LUMIERA_ERROR_DEFINE (LIFE_AND_UNIVERSE, "and everything?")
 
 LUMIERA_ERROR_DEFINE (DERIVED, "convoluted exception")
 

Namespaces

 lumiera
 Lumiera public interface.
 

Function Documentation

◆ LAUNCHER()

lumiera::test::LAUNCHER ( ExceptionError_test  ,
"function common"   
)

register this test class...