raise_exception Subroutine

public subroutine raise_exception(exc_type, message)

raises an exception

Arguments

Type IntentOptional AttributesName
class(object), intent(in) :: exc_type

The exception to raise.

Example: call raise_exception(ValueError, "bad value")

character(kind=C_CHAR,len=*), intent(in) :: message