API
Class

cordova-plugin-file-transfer.FileTransferError (cordova-plugin-file-transfer.FileTransferError)

使用范围:Native

Contents

class cordova-plugin-file-transfer.FileTransferError (cordova-plugin-file-transfer.FileTransferError)

请求失败回调函数返回的对象

Constructor Top

  FileTransferError ()

Constants Top

const Number ABORT_ERR

常量值 4

const Number CONNECTION_ERR

常量值 3

const Number FILE_NOT_FOUND_ERR

常量值 1

const Number INVALID_URL_ERR

常量值 2

const Number NOT_MODIFIED_ERR

常量值 5

Static Properties & Enumerations Top

String body

返回主体,仅当有http连接返回有效

Number code

错误代码

String exception

异常信息

Number http_status

http状态码

String source

源文件的url

String target

目标url

Constructor details Top

public FileTransferError ()

请求失败回调函数返回的对象

Constants Detail Top

static public Number ABORT_ERR

常量值 4

static public Number CONNECTION_ERR

常量值 3

static public Number FILE_NOT_FOUND_ERR

常量值 1

static public Number INVALID_URL_ERR

常量值 2

static public Number NOT_MODIFIED_ERR

常量值 5

Static Properties & Enumerations Detail Top

static public String body

返回主体,仅当有http连接返回有效

static public Number code

错误代码

static public String exception

异常信息

static public Number http_status

http状态码

static public String source

源文件的url

static public String target

目标url