JuggleException constructor
JuggleException(
- int errorCode
Implementation
JuggleException(this.errorCode) {
switch (errorCode) {
case appKeyEmpty:
description = 'invalid appkey';
case tokenEmpty:
description = 'invalid token';
case appKeyInvalid:
description = 'invalid appkey';
case tokenIllegal:
description = 'invalid token';
case tokenUnauthorized:
description = 'token unauthorized';
case tokenExpired:
description = 'token expired';
case appProhibited:
description = 'app prohibited';
case userProhibited:
description = 'user prohibited';
case userKickedByOtherClient:
description = 'user kicked by other client';
case userLogOut:
description = 'user log out';
case groupNotExist:
description = 'group not exist';
case notGroupMember:
description = 'not a group member';
case chatroomUnknownError:
description = 'chatroom unknown error';
case notChatroomMember:
description = 'not a chatroom member';
case chatroomAttributeCountExceed:
description = 'chatroom attribution count exceed';
case chatroomKeyUnauthorized:
description = 'chatroom key unauthorized';
case chatroomAttributeNotExist:
description = 'chatroom attribute not exist';
case chatroomNotExist:
description = 'chatroom not exist';
case chatroomDestroyed:
description = 'chatroom destroyed';
case invalidParam:
description = 'invalid parameter';
case operationTimeOut:
description = 'operation time out';
case connectionUnavailable:
description = 'connection unavailable';
case serverSetError:
description = 'server set error';
case connectionAlreadyExist:
description = 'connection already exist';
case messageNotExist:
description = 'message not exist';
case messageAlreadyRecalled:
description = "message alreay recalled";
case messageUploadError:
description = 'message upload error';
case recallExtrasTypeNotString:
description = 'recall extra type is not string';
case downloadNotMediaMessage:
description = 'the download task is not media message';
case messageDownloadError:
description = 'message download error';
case downloadAlreadyExist:
description = 'download already exist';
case downloadCanceled:
description = 'download canceled';
case chatroomBatchSetAttributeFail:
description = 'chatroom attribute batch set fail';
default:
description = 'unknown exception';
}
}