Packagecom.acapela.vaas.advanced
Classpublic class VaasError

This class contains the details of an error reported by the API.

It contains :

It is always encapsulated in a VaasErrorEvent that is dispatch by the Connector class.

See also

com.acapela.vaas.advanced.events.VaasErrorEvent
com.acapela.vaas.advanced.Connector


Public Properties
 PropertyDefined by
  details : String
[read-only] A description message that can have various characteristics (size, line count, style...)
VaasError
  type : String
[read-only] Defining the category of the error, must be one of the constants defined in this class.
VaasError
Public Constants
 ConstantDefined by
  ACCESS_DENIED_ERROR : String = "ACCESS_DENIED_ERROR"
[static] Error type used when the service refused your connexion (usually servicePassword error)
VaasError
  CONNEXION_ERROR : String = "CONNEXION_ERROR"
[static] Error type used when the request failed at connexion step (usually serviceIdentifier error).
VaasError
  FLASH_SECURITY_ERROR : String = "FLASH_SECURITY_ERROR"
[static] Error type used when an error related to Flash security occured.
VaasError
  ID_NOT_AVAILABLE_ERROR : String = "ID_NOT_AVAILABLE_ERROR"
[static] Error type used when trying to access to a message not available on the service (deleted, moved, never created...)
VaasError
  INSUFFICIENT_PRIVILEGE_ERROR : String = "INSUFFICIENT_PRIVILEGE_ERROR"
[static] Error type used when the service refused your request (usually when your account is not allowed to execute it)
VaasError
  INVALID_PARAM_ERROR : String = "INVALID_PARAM_ERROR"
[static] Error type used when invoking a method with an invalid param/status.
VaasError
  REDIRECTION_FAILURE_ERROR : String = "REDIRECTION_FAILURE_ERROR"
[static] Error type used when the service tried to redirect your request and it failed
VaasError
  SOUND_GENERATION_ERROR : String = "SOUND_GENERATION_ERROR"
[static] Error type used when the request failed at sound generation step (usually voice error).
VaasError
  TIMEOUT_ERROR : String = "TIMEOUT"
[static] Error type used when the requested was interrupted because the time limit was hit.
VaasError
  UNEXPECTED_ERROR : String = "UNEXPECTED_ERROR"
[static] Error type used when an unpredictable error occured.
VaasError
Property detail
detailsproperty
details:String  [read-only]

A description message that can have various characteristics (size, line count, style...)

Implementation
    public function get details():String
typeproperty 
type:String  [read-only]

Defining the category of the error, must be one of the constants defined in this class.

Implementation
    public function get type():String
Constant detail
ACCESS_DENIED_ERRORconstant
public static const ACCESS_DENIED_ERROR:String = "ACCESS_DENIED_ERROR"

Error type used when the service refused your connexion (usually servicePassword error)

CONNEXION_ERRORconstant 
public static const CONNEXION_ERROR:String = "CONNEXION_ERROR"

Error type used when the request failed at connexion step (usually serviceIdentifier error).

FLASH_SECURITY_ERRORconstant 
public static const FLASH_SECURITY_ERROR:String = "FLASH_SECURITY_ERROR"

Error type used when an error related to Flash security occured.

ID_NOT_AVAILABLE_ERRORconstant 
public static const ID_NOT_AVAILABLE_ERROR:String = "ID_NOT_AVAILABLE_ERROR"

Error type used when trying to access to a message not available on the service (deleted, moved, never created...)

INSUFFICIENT_PRIVILEGE_ERRORconstant 
public static const INSUFFICIENT_PRIVILEGE_ERROR:String = "INSUFFICIENT_PRIVILEGE_ERROR"

Error type used when the service refused your request (usually when your account is not allowed to execute it)

INVALID_PARAM_ERRORconstant 
public static const INVALID_PARAM_ERROR:String = "INVALID_PARAM_ERROR"

Error type used when invoking a method with an invalid param/status.

REDIRECTION_FAILURE_ERRORconstant 
public static const REDIRECTION_FAILURE_ERROR:String = "REDIRECTION_FAILURE_ERROR"

Error type used when the service tried to redirect your request and it failed

SOUND_GENERATION_ERRORconstant 
public static const SOUND_GENERATION_ERROR:String = "SOUND_GENERATION_ERROR"

Error type used when the request failed at sound generation step (usually voice error).

TIMEOUT_ERRORconstant 
public static const TIMEOUT_ERROR:String = "TIMEOUT"

Error type used when the requested was interrupted because the time limit was hit.

UNEXPECTED_ERRORconstant 
public static const UNEXPECTED_ERROR:String = "UNEXPECTED_ERROR"

Error type used when an unpredictable error occured.