YAZ  5.34.0
Functions | Variables
cclerrms.c File Reference

Implements CCL error code to error string map. More...

#include <yaz/ccl.h>

Go to the source code of this file.

Functions

const char * ccl_err_msg (int ccl_errno)
 

Variables

static char * err_msg_array []
 

Detailed Description

Implements CCL error code to error string map.

This source file implements mapping between CCL error code and their string equivalents.

Definition in file cclerrms.c.

Function Documentation

◆ ccl_err_msg()

const char* ccl_err_msg ( int  ccl_errno)

Return english-readable error message for CCL parser error number

Definition at line 36 of file cclerrms.c.

References err_msg_array.

Referenced by ccl2pqf(), and ZOOM_query_ccl2rpn().

Variable Documentation

◆ err_msg_array

char* err_msg_array[]
static
Initial value:
= {
"Ok",
"Search word expected",
"')' expected",
"Set name expected",
"Operator expected",
"Unbalanced ')'",
"Unknown qualifier",
"Qualifiers applied twice",
"'=' expected",
"Bad relation",
"Left truncation not supported",
"Both left - and right truncation not supported",
"Right truncation not supported",
"Embedded truncation not supported",
"Single character mask not supported"
}

Definition at line 18 of file cclerrms.c.

Referenced by ccl_err_msg().