Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.09 KB

and-servicecommanderror.rst

File metadata and controls

48 lines (30 loc) · 1.09 KB

ServiceCommandError

com.connectsdk.service.command.ServiceCommandError

This class implements base service error which is based on HTTP response codes

Methods

ServiceCommandError ()

ServiceCommandError (String detailMessage)

Parameters:
  • detailMessage

ServiceCommandError (int code, String detailMessage)

Parameters:
  • code
  • detailMessage

ServiceCommandError (int code, String desc, Object payload)

Parameters:
  • code
  • desc
  • payload

int getCode ()

Object getPayload ()

static ServiceCommandError <and-servicecommanderror> notSupported ()

Create an error which indicates that feature is not supported by a service

Returns: NotSupportedServiceCommandError

static ServiceCommandError <and-servicecommanderror> getError (int code)

Create an error from HTTP response code

Parameters:
  • code – HTTP response code

Returns: ServiceCommandError