Exceptions

If the NLP API fails to be called, the NlpException class is thrown. You can locate the cause of the problem based on exceptions.

Table 1 NlpException field description

Parameter

Type

Mandatory

Description

message

String

Yes

Error information overview, which is inherited from the Exception class.

responseCode

Integer

No

HTTP error code returned by the server. For details, see Status Code.

reponseBody

String

No

Error body returned by the server, including the errorCode and errorMessage fields. For details, see Error Code.

For details about status codes, see Status Code in API Reference. For details about error codes, see Error Code in API Reference.