aminoacid.exceptions
1from logging import getLogger 2 3logger = getLogger(__name__) 4 5 6class AminoBaseException(Exception): 7 """Base Class for AminoAcid Exceptions, all exceptions use this as a base class""" 8 9 ... 10 11 12class UnknownExcepion(AminoBaseException): 13 ... 14 15 16class AccessDenied(AminoBaseException): 17 ... 18 19 20class UnsupportedService(AminoBaseException): 21 ... 22 23 24class InvalidRequest(AminoBaseException): 25 ... 26 27 28class InvalidSession(AminoBaseException): 29 ... 30 31 32class InvalidAccountOrPassword(AminoBaseException): 33 ... 34 35 36class InvalidDevice(AminoBaseException): 37 ... 38 39 40class TooManyRequests(AminoBaseException): 41 ... 42 43 44class ActionNotAllowed(AminoBaseException): 45 ... 46 47 48class FileTooLarge(AminoBaseException): 49 ... 50 51 52class UnexistentData(AminoBaseException): 53 ... 54 55 56class MessageNeeded(AminoBaseException): 57 ... 58 59 60class AccountDisabled(AminoBaseException): 61 ... 62 63 64class InvalidEmail(AminoBaseException): 65 ... 66 67 68class InvalidPassword(AminoBaseException): 69 ... 70 71 72class EmailAlreadyTaken(AminoBaseException): 73 ... 74 75 76class AccountDoesntExist(AminoBaseException): 77 ... 78 79 80class CantFollowYourself(AminoBaseException): 81 ... 82 83 84class UserUnavailable(AminoBaseException): 85 ... 86 87 88class YouAreBanned(AminoBaseException): 89 ... 90 91 92class UserNotMemberOfCommunity(AminoBaseException): 93 ... 94 95 96class RequestRejected(AminoBaseException): 97 ... 98 99 100class ActivateAccount(AminoBaseException): 101 ... 102 103 104class CantLeaveCommunity(AminoBaseException): 105 ... 106 107 108class ReachedTitleLength(AminoBaseException): 109 ... 110 111 112class EmailFlaggedAsSpam(AminoBaseException): 113 ... 114 115 116class AccountDeleted(AminoBaseException): 117 ... 118 119 120class API_ERR_EMAIL_NO_PASSWORD(AminoBaseException): 121 ... 122 123 124class API_ERR_COMMUNITY_USER_CREATED_COMMUNITIES_VERIFY(AminoBaseException): 125 ... 126 127 128class ReachedMaxTitles(AminoBaseException): 129 ... 130 131 132class VerificationRequired(AminoBaseException): 133 ... 134 135 136class API_ERR_INVALID_AUTH_NEW_DEVICE_LINK(AminoBaseException): 137 ... 138 139 140class CommandCooldown(AminoBaseException): 141 ... 142 143 144class UserBannedByTeamAmino(AminoBaseException): 145 ... 146 147 148class BadImage(AminoBaseException): 149 ... 150 151 152class InvalidThemepack(AminoBaseException): 153 ... 154 155 156class InvalidVoiceNote(AminoBaseException): 157 ... 158 159 160class RequestedNoLongerExist(AminoBaseException): 161 ... 162 163 164class PageRepostedTooRecently(AminoBaseException): 165 ... 166 167 168class InsufficientLevel(AminoBaseException): 169 ... 170 171 172class WallCommentingDisabled(AminoBaseException): 173 ... 174 175 176class CommunityNoLongerExists(AminoBaseException): 177 ... 178 179 180class InvalidCodeOrLink(AminoBaseException): 181 ... 182 183 184class CommunityNameAlreadyTaken(AminoBaseException): 185 ... 186 187 188class CommunityCreateLimitReached(AminoBaseException): 189 ... 190 191 192class CommunityDisabled(AminoBaseException): 193 ... 194 195 196class CommunityDeleted(AminoBaseException): 197 ... 198 199 200class ReachedMaxCategories(AminoBaseException): 201 ... 202 203 204class DuplicatePollOption(AminoBaseException): 205 ... 206 207 208class ReachedMaxPollOptions(AminoBaseException): 209 ... 210 211 212class TooManyChats(AminoBaseException): 213 ... 214 215 216class ChatFull(AminoBaseException): 217 ... 218 219 220class TooManyInviteUsers(AminoBaseException): 221 ... 222 223 224class ChatInvitesDisabled(AminoBaseException): 225 ... 226 227 228class RemovedFromChat(AminoBaseException): 229 ... 230 231 232class UserNotJoined(AminoBaseException): 233 ... 234 235 236class API_ERR_CHAT_VVCHAT_NO_MORE_REPUTATIONS(AminoBaseException): 237 ... 238 239 240class MemberKickedByOrganizer(AminoBaseException): 241 ... 242 243 244class LevelFiveRequiredToEnableProps(AminoBaseException): 245 ... 246 247 248class ChatViewOnly(AminoBaseException): 249 ... 250 251 252class ChatMessageTooBig(AminoBaseException): 253 ... 254 255 256class InviteCodeNotFound(AminoBaseException): 257 ... 258 259 260class AlreadyRequestedJoinCommunity(AminoBaseException): 261 ... 262 263 264class API_ERR_PUSH_SERVER_LIMITATION_APART(AminoBaseException): 265 ... 266 267 268class API_ERR_PUSH_SERVER_LIMITATION_COUNT(AminoBaseException): 269 ... 270 271 272class API_ERR_PUSH_SERVER_LINK_NOT_IN_COMMUNITY(AminoBaseException): 273 ... 274 275 276class API_ERR_PUSH_SERVER_LIMITATION_TIME(AminoBaseException): 277 ... 278 279 280class AlreadyCheckedIn(AminoBaseException): 281 ... 282 283 284class AlreadyUsedMonthlyRepair(AminoBaseException): 285 ... 286 287 288class AccountAlreadyRestored(AminoBaseException): 289 ... 290 291 292class IncorrectVerificationCode(AminoBaseException): 293 ... 294 295 296class NotOwnerOfChatBubble(AminoBaseException): 297 ... 298 299 300class NotEnoughCoins(AminoBaseException): 301 ... 302 303 304class AlreadyPlayedLottery(AminoBaseException): 305 ... 306 307 308class CannotSendCoins(AminoBaseException): 309 ... 310 311 312class AminoIDAlreadyChanged(AminoBaseException): 313 ... 314 315 316class InvalidAminoID(AminoBaseException): 317 ... 318 319 320class InvalidName(AminoBaseException): 321 ... 322 323 324def handle_exception(code: int, data = ""): 325 """Raises a given exception 326 327 Parameters 328 ---------- 329 code : int 330 The api:statuscode 331 """ 332 # TODO: Complete this list 333 raise ( 334 { 335 100: UnsupportedService, 336 102: FileTooLarge, 337 103: InvalidRequest, 338 104: InvalidRequest, 339 105: InvalidSession, 340 106: AccessDenied, 341 107: UnexistentData, 342 110: ActionNotAllowed, 343 113: MessageNeeded, 344 200: InvalidAccountOrPassword, 345 201: AccountDisabled, 346 210: AccountDisabled, 347 213: InvalidEmail, 348 214: InvalidPassword, 349 215: EmailAlreadyTaken, 350 216: AccountDoesntExist, 351 218: InvalidDevice, 352 219: TooManyRequests, 353 221: CantFollowYourself, 354 225: UserUnavailable, 355 229: YouAreBanned, 356 230: UserNotMemberOfCommunity, 357 235: RequestRejected, 358 238: ActivateAccount, 359 239: CantLeaveCommunity, 360 240: ReachedTitleLength, 361 241: EmailFlaggedAsSpam, 362 246: AccountDeleted, 363 251: API_ERR_EMAIL_NO_PASSWORD, 364 257: API_ERR_COMMUNITY_USER_CREATED_COMMUNITIES_VERIFY, 365 262: ReachedMaxTitles, 366 270: VerificationRequired, 367 271: API_ERR_INVALID_AUTH_NEW_DEVICE_LINK, 368 291: CommandCooldown, 369 293: UserBannedByTeamAmino, 370 300: BadImage, 371 313: InvalidThemepack, 372 314: InvalidVoiceNote, 373 500: RequestedNoLongerExist, 374 700: RequestedNoLongerExist, 375 1600: RequestedNoLongerExist, 376 503: PageRepostedTooRecently, 377 551: InsufficientLevel, 378 702: WallCommentingDisabled, 379 801: CommunityNoLongerExists, 380 802: InvalidCodeOrLink, 381 805: CommunityNameAlreadyTaken, 382 806: CommunityCreateLimitReached, 383 814: CommunityDisabled, 384 833: CommunityDeleted, 385 1002: ReachedMaxCategories, 386 1501: DuplicatePollOption, 387 1507: ReachedMaxPollOptions, 388 1602: TooManyChats, 389 1605: ChatFull, 390 1606: TooManyInviteUsers, 391 1611: ChatInvitesDisabled, 392 1612: RemovedFromChat, 393 1613: UserNotJoined, 394 1627: API_ERR_CHAT_VVCHAT_NO_MORE_REPUTATIONS, 395 1637: MemberKickedByOrganizer, 396 1661: LevelFiveRequiredToEnableProps, 397 1663: ChatViewOnly, 398 1664: ChatMessageTooBig, 399 1900: InviteCodeNotFound, 400 2001: AlreadyRequestedJoinCommunity, 401 2501: API_ERR_PUSH_SERVER_LIMITATION_APART, 402 2502: API_ERR_PUSH_SERVER_LIMITATION_COUNT, 403 2503: API_ERR_PUSH_SERVER_LINK_NOT_IN_COMMUNITY, 404 2504: API_ERR_PUSH_SERVER_LIMITATION_TIME, 405 2601: AlreadyCheckedIn, 406 2611: AlreadyUsedMonthlyRepair, 407 2800: AccountAlreadyRestored, 408 3102: IncorrectVerificationCode, 409 3905: NotOwnerOfChatBubble, 410 4300: NotEnoughCoins, 411 4400: AlreadyPlayedLottery, 412 4500: CannotSendCoins, 413 4501: CannotSendCoins, 414 6001: AminoIDAlreadyChanged, 415 6002: InvalidAminoID, 416 9901: InvalidName, 417 }.get(code, UnknownExcepion) 418 )(data) 419 420 421class CommandNotFound(AminoBaseException): 422 ... 423 424 425class CommandExists(AminoBaseException): 426 ... 427 428 429class CheckFailed(AminoBaseException): 430 ...
7class AminoBaseException(Exception): 8 """Base Class for AminoAcid Exceptions, all exceptions use this as a base class""" 9 10 ...
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
325def handle_exception(code: int, data = ""): 326 """Raises a given exception 327 328 Parameters 329 ---------- 330 code : int 331 The api:statuscode 332 """ 333 # TODO: Complete this list 334 raise ( 335 { 336 100: UnsupportedService, 337 102: FileTooLarge, 338 103: InvalidRequest, 339 104: InvalidRequest, 340 105: InvalidSession, 341 106: AccessDenied, 342 107: UnexistentData, 343 110: ActionNotAllowed, 344 113: MessageNeeded, 345 200: InvalidAccountOrPassword, 346 201: AccountDisabled, 347 210: AccountDisabled, 348 213: InvalidEmail, 349 214: InvalidPassword, 350 215: EmailAlreadyTaken, 351 216: AccountDoesntExist, 352 218: InvalidDevice, 353 219: TooManyRequests, 354 221: CantFollowYourself, 355 225: UserUnavailable, 356 229: YouAreBanned, 357 230: UserNotMemberOfCommunity, 358 235: RequestRejected, 359 238: ActivateAccount, 360 239: CantLeaveCommunity, 361 240: ReachedTitleLength, 362 241: EmailFlaggedAsSpam, 363 246: AccountDeleted, 364 251: API_ERR_EMAIL_NO_PASSWORD, 365 257: API_ERR_COMMUNITY_USER_CREATED_COMMUNITIES_VERIFY, 366 262: ReachedMaxTitles, 367 270: VerificationRequired, 368 271: API_ERR_INVALID_AUTH_NEW_DEVICE_LINK, 369 291: CommandCooldown, 370 293: UserBannedByTeamAmino, 371 300: BadImage, 372 313: InvalidThemepack, 373 314: InvalidVoiceNote, 374 500: RequestedNoLongerExist, 375 700: RequestedNoLongerExist, 376 1600: RequestedNoLongerExist, 377 503: PageRepostedTooRecently, 378 551: InsufficientLevel, 379 702: WallCommentingDisabled, 380 801: CommunityNoLongerExists, 381 802: InvalidCodeOrLink, 382 805: CommunityNameAlreadyTaken, 383 806: CommunityCreateLimitReached, 384 814: CommunityDisabled, 385 833: CommunityDeleted, 386 1002: ReachedMaxCategories, 387 1501: DuplicatePollOption, 388 1507: ReachedMaxPollOptions, 389 1602: TooManyChats, 390 1605: ChatFull, 391 1606: TooManyInviteUsers, 392 1611: ChatInvitesDisabled, 393 1612: RemovedFromChat, 394 1613: UserNotJoined, 395 1627: API_ERR_CHAT_VVCHAT_NO_MORE_REPUTATIONS, 396 1637: MemberKickedByOrganizer, 397 1661: LevelFiveRequiredToEnableProps, 398 1663: ChatViewOnly, 399 1664: ChatMessageTooBig, 400 1900: InviteCodeNotFound, 401 2001: AlreadyRequestedJoinCommunity, 402 2501: API_ERR_PUSH_SERVER_LIMITATION_APART, 403 2502: API_ERR_PUSH_SERVER_LIMITATION_COUNT, 404 2503: API_ERR_PUSH_SERVER_LINK_NOT_IN_COMMUNITY, 405 2504: API_ERR_PUSH_SERVER_LIMITATION_TIME, 406 2601: AlreadyCheckedIn, 407 2611: AlreadyUsedMonthlyRepair, 408 2800: AccountAlreadyRestored, 409 3102: IncorrectVerificationCode, 410 3905: NotOwnerOfChatBubble, 411 4300: NotEnoughCoins, 412 4400: AlreadyPlayedLottery, 413 4500: CannotSendCoins, 414 4501: CannotSendCoins, 415 6001: AminoIDAlreadyChanged, 416 6002: InvalidAminoID, 417 9901: InvalidName, 418 }.get(code, UnknownExcepion) 419 )(data)
Raises a given exception
Parameters
- code (int): The api:statuscode
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
Base Class for AminoAcid Exceptions, all exceptions use this as a base class
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args