jaulib v1.4.1-42-g12a2879
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
test_exceptions01.cpp File Reference
#include <cstring>
#include <exception>
#include <iostream>
#include <stdexcept>
#include <system_error>
#include <jau/cpp_lang_util.hpp>
#include <jau/test/catch2_ext.hpp>
#include <jau/basic_types.hpp>
#include <jau/exceptions.hpp>
#include <jau/math/math_error.hpp>
#include <jau/mp/big_int.hpp>
Include dependency graph for test_exceptions01.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("Exception 00", "[exceptions][error]")
 
 TEST_CASE ("Exception 10 Math", "[big_int_t][exceptions][error][math]")
 
 TEST_CASE ("Exception 11 Math", "[big_int_t][exceptions][error][arithmetic][math]")
 
 TEST_CASE ("Exception 20 Catching", "[exceptions][error]")
 
static void throwIllegalArgumentError ()
 
static void throwIllegalStateError ()
 
static void throwIndexOutOfBoundsError ()
 
static void throwInternalError ()
 
static void throwIOError ()
 
static void throwLogicError ()
 
static void throwMathDivByZeroError ()
 
static void throwMathDomainError ()
 
static void throwMathError ()
 
static void throwMathInexactError ()
 
static void throwMathOverflowError ()
 
static void throwMathUnderflowError ()
 
static void throwNotImplementedException ()
 
static void throwNullPointerException ()
 
static void throwOutOfMemoryError ()
 
static void throwRuntimeException ()
 
static void throwRuntimeSystemException ()
 
static void throwUnsupportedOperationException ()
 

Function Documentation

◆ throwOutOfMemoryError()

static void throwOutOfMemoryError ( )
static

Definition at line 40 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwRuntimeException()

static void throwRuntimeException ( )
static

Definition at line 43 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwLogicError()

static void throwLogicError ( )
static

Definition at line 46 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwIndexOutOfBoundsError()

static void throwIndexOutOfBoundsError ( )
static

Definition at line 49 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwIllegalArgumentError()

static void throwIllegalArgumentError ( )
static

Definition at line 52 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwIllegalStateError()

static void throwIllegalStateError ( )
static

Definition at line 55 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwRuntimeSystemException()

static void throwRuntimeSystemException ( )
static

Definition at line 58 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwIOError()

static void throwIOError ( )
static

Definition at line 61 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwInternalError()

static void throwInternalError ( )
static

Definition at line 64 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwNotImplementedException()

static void throwNotImplementedException ( )
static

Definition at line 67 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwNullPointerException()

static void throwNullPointerException ( )
static

Definition at line 70 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwUnsupportedOperationException()

static void throwUnsupportedOperationException ( )
static

Definition at line 73 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ TEST_CASE() [1/4]

TEST_CASE ( "Exception 00" ,
"" [exceptions][error] )

Definition at line 77 of file test_exceptions01.cpp.

◆ throwMathError()

static void throwMathError ( )
static

Definition at line 177 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwMathInexactError()

static void throwMathInexactError ( )
static

Definition at line 180 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwMathDomainError()

static void throwMathDomainError ( )
static

Definition at line 183 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwMathDivByZeroError()

static void throwMathDivByZeroError ( )
static

Definition at line 186 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwMathOverflowError()

static void throwMathOverflowError ( )
static

Definition at line 189 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwMathUnderflowError()

static void throwMathUnderflowError ( )
static

Definition at line 192 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ TEST_CASE() [2/4]

TEST_CASE ( "Exception 10 Math" ,
"" [big_int_t][exceptions][error][math] )

Definition at line 196 of file test_exceptions01.cpp.

◆ TEST_CASE() [3/4]

TEST_CASE ( "Exception 11 Math" ,
"" [big_int_t][exceptions][error][arithmetic][math] )

Definition at line 257 of file test_exceptions01.cpp.

◆ TEST_CASE() [4/4]

TEST_CASE ( "Exception 20 Catching" ,
"" [exceptions][error] )

Definition at line 269 of file test_exceptions01.cpp.