libErrorHandling Module


Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: SUCCESS = 0
integer, public, parameter :: ERR_FILE_NOT_FOUND = 1
integer, public, parameter :: ERR_INVALID_INPUT = 2
integer, public, parameter :: ERR_CONVERGENCE_FAILED = 3
integer, public, parameter :: ERR_MISC = 99

Functions

public function error_message(code, context) result(msg)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: code
character(len=*), intent(in), optional :: context

Return Value character(len=256)


Subroutines

public subroutine raise_error(code, context)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: code
character(len=*), intent(in), optional :: context