jaulib v1.4.1-17-gd77ace3-dirty
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/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 39 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwRuntimeException()

static void throwRuntimeException ( )
static

Definition at line 42 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwLogicError()

static void throwLogicError ( )
static

Definition at line 45 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwIndexOutOfBoundsError()

static void throwIndexOutOfBoundsError ( )
static

Definition at line 48 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwIllegalArgumentError()

static void throwIllegalArgumentError ( )
static

Definition at line 51 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwIllegalStateError()

static void throwIllegalStateError ( )
static

Definition at line 54 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwRuntimeSystemException()

static void throwRuntimeSystemException ( )
static

Definition at line 57 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwIOError()

static void throwIOError ( )
static

Definition at line 60 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwInternalError()

static void throwInternalError ( )
static

Definition at line 63 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwNotImplementedException()

static void throwNotImplementedException ( )
static

Definition at line 66 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwNullPointerException()

static void throwNullPointerException ( )
static

Definition at line 69 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwUnsupportedOperationException()

static void throwUnsupportedOperationException ( )
static

Definition at line 72 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 76 of file test_exceptions01.cpp.

◆ throwMathError()

static void throwMathError ( )
static

Definition at line 176 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwMathInexactError()

static void throwMathInexactError ( )
static

Definition at line 179 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwMathDomainError()

static void throwMathDomainError ( )
static

Definition at line 182 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwMathDivByZeroError()

static void throwMathDivByZeroError ( )
static

Definition at line 185 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwMathOverflowError()

static void throwMathOverflowError ( )
static

Definition at line 188 of file test_exceptions01.cpp.

Here is the caller graph for this function:

◆ throwMathUnderflowError()

static void throwMathUnderflowError ( )
static

Definition at line 191 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 195 of file test_exceptions01.cpp.

◆ TEST_CASE() [3/4]

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

Definition at line 256 of file test_exceptions01.cpp.

◆ TEST_CASE() [4/4]

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

Definition at line 268 of file test_exceptions01.cpp.