PCMParseErrorMessage function

Extract error information from a formatted error message.