ErrorV Derived Type

type, public :: ErrorV

Error value


Contents


Components

TypeVisibilityAttributesNameInitial
integer, public :: code =1

Error code

character(len=128), public :: message =""

Error message


Constructor

public interface ErrorV

  • private function constructor(code, message) result(self)

    Constructor function: see docs of [[m_error_v(module):build(procedure)]] for details.

    Arguments

    TypeIntentOptionalAttributesName
    integer, intent(in) :: code
    character(len=*), intent(in), optional :: message

    Return Value type(ErrorV)


Type-Bound Procedures

procedure, public :: finalise

  • private subroutine finalise(self)

    Finalise the instance (i.e. free/deallocate)

    Arguments

    TypeIntentOptionalAttributesName
    class(ErrorV), intent(inout) :: self

procedure, public :: build

  • private subroutine build(self, code, message)

    Build instance

    Arguments

    TypeIntentOptionalAttributesName
    class(ErrorV), intent(inout) :: self
    integer, intent(in) :: code

    Error code

    character(len=*), intent(in), optional :: message

    Use NO_ERROR_CODE if there is no error. Error message