tomlf_error Module

Central registry for error codes



Variables

Type Visibility Attributes Name Initial
type(enum_stat), public, parameter :: toml_stat = enum_stat()

Actual enumerator for return states


Derived Types

type, public ::  toml_error

Error message produced by TOML-Fortran

Components

Type Visibility Attributes Name Initial
character(kind=tfc, len=:), public, allocatable :: message

Payload of the error

integer, public :: stat = toml_stat%fatal

Error code


Subroutines

public subroutine make_error(error, message, stat)

Create new error message

Arguments

Type IntentOptional Attributes Name
type(toml_error), intent(out), allocatable :: error

Error report

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

Message for the error

integer, intent(in), optional :: stat

Status code