fortplot_error_t Derived Type

type, public :: fortplot_error_t

Error result type containing status and message


Components

Type Visibility Attributes Name Initial
integer, public :: status = SUCCESS
character(len=MAX_ERROR_MESSAGE), public :: message = ""

Type-Bound Procedures

procedure, public :: set_error

  • private subroutine set_error(this, status, message)

    Set error status and message

    Arguments

    Type IntentOptional Attributes Name
    class(fortplot_error_t), intent(inout) :: this
    integer, intent(in) :: status
    character(len=*), intent(in) :: message

procedure, public :: clear_error

  • private subroutine clear_error(this)

    Clear error status

    Arguments

    Type IntentOptional Attributes Name
    class(fortplot_error_t), intent(inout) :: this

procedure, public :: is_error => error_has_error

  • private function error_has_error(this) result(has_error)

    Check if error object has an error

    Arguments

    Type IntentOptional Attributes Name
    class(fortplot_error_t), intent(in) :: this

    Return Value logical