HSP Errors

Axigen Documentation

To find out if a HSP error has occurred after a method call, use the getLastError method. There are several possible method errors:

− "METHOD_INVALID_NAME"

− "METHOD_PRIVATE"

− "ARG_TOO_FEW"

− "ARG_TOO_MANY"

− "ARG_INVALID_TYPE"

− "ARG_INVALID_VALUE"

− "ARG_NULL_VALUE"


An error can also occur at protocol level. To find out if a protocol error has occurred, first call the getLastError method in a HSP page. Possible protocol errors:

− "HTTP_HEADERS_TOO_LARGE"

− "HTTP_HEADER_TOO_LONG"

− "HTTP_BODY_TOO_LARGE"

− "RESOURCE_TOO_LARGE"


In HSP, any syntax, language or I/O error is reported. In case of such an error, the HSP file is replaced with a hard-coded error page.

Syntax errors

Misspelling method names is not reported as an error. If any of the specifications of this document is violated, then a syntax error is generated.

Language Errors

A language error is generated when an instruction is not properly implemented. Such a case is illustrated below:

If any of the specifications of this document is violated, then a syntax error is generated.