error_get_code Function

private pure function error_get_code(self) result(code)

Get the error code

Type Bound

error_t

Arguments

Type IntentOptional Attributes Name
class(error_t), intent(in) :: self

Return Value integer(kind=default_int)


Source Code

   pure function error_get_code(self) result(code)
      !! Get the error code
      class(error_t), intent(in) :: self
      integer(default_int) :: code
      code = self%code
   end function error_get_code