PCMBase (version 1.2.10)

PCMParseErrorMessage: Extract error information from a formatted error message.

Description

The function searches x for a pattern matching the format 'ERR:5-alphanumeric-character-code:project-name:source-file:error-specifics:'. Specifically it searches for a regular expression pattern "ERR:[0-9a-zA-Z]+:[^:]+:[^:]+:[^:]+:[^:]*:".

Usage

PCMParseErrorMessage(x)

Arguments

x

character string representing the error message.

Value

a named list with the parsed error information or NULL, if no match was found. The elements of this list are named as follows:

type

The type of the error message. Usually this is ERROR, but could be WARNING or anything else.

icode

An an alphanumeric code of the error.

project

The name of the project locating the code that raised the error.

file

The name of the source-file containing the code that raised the error.

fun

The name of the function raising the error

info

A character string containing additional error-specific information

msg

A verbal description of the error.