exception_matches Function

public function exception_matches(exc) result(is_match)

Checks if a certain type of exception has occurred.

Example: flag = exception_matches(KeyError) Returns .false. if no exception has occurred.

Arguments

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

Return Value logical