A Discrete-Event Network Simulator
API
Core example: NS_FATAL error handlers

Example program illustrating use of the NS_FATAL error handlers. More...

+ Collaboration diagram for Core example: NS_FATAL error handlers:

Functions

void Fatal (void)
 Triggers a fatal error with message, and terminating. More...
 
void FatalCont (void)
 Triggers a fatal error with an error message, deferring termination. More...
 
void FatalNoMsg (void)
 Triggers a fatal error without message, deferring termination. More...
 

Detailed Description

Example program illustrating use of the NS_FATAL error handlers.

Function Documentation

◆ Fatal()

void Fatal ( void  )

Triggers a fatal error with message, and terminating.

Definition at line 67 of file fatal-example.cc.

References NS_FATAL_ERROR.

◆ FatalCont()

void FatalCont ( void  )

Triggers a fatal error with an error message, deferring termination.

Definition at line 55 of file fatal-example.cc.

References NS_FATAL_ERROR_CONT.

◆ FatalNoMsg()

void FatalNoMsg ( void  )

Triggers a fatal error without message, deferring termination.

Definition at line 43 of file fatal-example.cc.

References NS_FATAL_ERROR_NO_MSG_CONT.