Custom class which extends the JavaScript's built-in Error class to encapsulate the Avaya CCaaS Chat SDK specific errors. Each ACSException will have specific event code and description which provides details about the exact error.

Following are the error specific event codes

Code Description
ACS-301 Server URL not provided
ACS-302 Invalid init parameters
ACS-303 Invalid configuration values
ACS-304 Server responded unexpectedly
ACS-305 JWT token is invalid
ACS-306 Server is unreachable
ACS-307 Invalid IntegrationId
ACS-308 JWT Token not provided
ACS-309 Invalid URL
ACS-310 Avaya CCaaS Chat SDK not initialized
ACS-311 Avaya CCaaS Chat SDK failed to initialize
ACS-312 Unable to join defunct engagement
ACS-313 Engagement is not activated
ACS-314 Engagement doesn't exist
ACS-315 Engagement already active
ACS-316 PageIterator failed to initialized
ACS-317 Failed to fetch older messages
ACS-318 Retry connection is allowed only in case of Event Stream Failure
ACS-319 Failed to update engagement
ACS-320 Session not found
ACS-321 Cannot perform this operation as init/shutdown is in progress
ACS-322 Constraint Violation Error -

Along with these there are few other codes which are used specifically as a warning.

Code Description
ACS-201 Custom configurations not provided, using default configuration
ACS-202 Removing all event handlers
ACS-203 Event doesn't exist
ACS-204 Avaya CCaaS Chat SDK is already initialized, subsequent init attempts will be ignored
ACS-205 Event handler not registered
ACS-206 Idle timeout
ACS-207 Incorrect reconnectionTimeout value
ACS-208 Incorrect idleTimeout value
ACS-209 Incorrect idleShutdownGraceTimeout value
ACS-210 Incorrect logLevel value
ACS-211 Invalid page size, using default value (10)
ACS-212 Error occurred while reading Session Storage
ACS-213 Error occurred while writing to Session Storage

Hierarchy

  • Error
    • ACSException

Properties

name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Accessors

  • get code(): string
  • Returns string

  • get message(): string
  • Returns string

Methods

  • Returns string

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void