/** @module PlayerIOError */ export default class PlayerIOError extends Error { /** * The PlayerIO error code for this error */ code: string; constructor(code: string, message: string); /** * Get a string representation of the error */ toString(): string; static PlayerIOErrorCode: { /** The method requested is not supported */ readonly UnsupportedMethod: "UnsupportedMethod"; /** A general error occurred */ readonly GeneralError: "GeneralError"; /** An unexpected error occurred inside the Player.IO webservice. Please try again. */ readonly InternalError: "InternalError"; /** Access is denied */ readonly AccessDenied: "AccessDenied"; /** The message is malformatted */ readonly InvalidMessageFormat: "InvalidMessageFormat"; /** A value is missing */ readonly MissingValue: "MissingValue"; /** A game is required to do this action */ readonly GameRequired: "GameRequired"; /** An error occurred while contacting an external service */ readonly ExternalError: "ExternalError"; /** The given argument value is outside the range of allowed values. */ readonly ArgumentOutOfRange: "ArgumentOutOfRange"; /** The game has been disabled, most likely because of missing payment. */ readonly GameDisabled: "GameDisabled"; /** The game requested is not known by the server */ readonly UnknownGame: "UnknownGame"; /** The connection requested is not known by the server */ readonly UnknownConnection: "UnknownConnection"; /** The auth given is invalid or malformatted */ readonly InvalidAuth: "InvalidAuth"; /** There is no server in any of the selected server clusters for the game that are eligible to start a new room in (they're all at full capacity or there are no servers in any of the clusters). Either change the selected clusters for your game in the admin panel, try again later or start some more servers for one of your clusters. */ readonly NoServersAvailable: "NoServersAvailable"; /** The room data for the room was over the allowed size limit */ readonly RoomDataTooLarge: "RoomDataTooLarge"; /** You are unable to create room because there is already a room with the specified id */ readonly RoomAlreadyExists: "RoomAlreadyExists"; /** The game you're connected to does not have a room type with the specified name */ readonly UnknownRoomType: "UnknownRoomType"; /** There is no room running with that id */ readonly UnknownRoom: "UnknownRoom"; /** You can't join the room when the RoomID is null or the empty string */ readonly MissingRoomId: "MissingRoomId"; /** The room already has the maxmium amount of users in it. */ readonly RoomIsFull: "RoomIsFull"; /** The key you specified is not set as searchable. You can change the searchable keys in the admin panel for the server type */ readonly NotASearchColumn: "NotASearchColumn"; /** The QuickConnect method (simple, facebook, kongregate...) is not enabled for the game. You can enable the various methods in the admin panel for the game */ readonly QuickConnectMethodNotEnabled: "QuickConnectMethodNotEnabled"; /** The user is unknown */ readonly UnknownUser: "UnknownUser"; /** The password supplied is incorrect */ readonly InvalidPassword: "InvalidPassword"; /** The supplied data is incorrect */ readonly InvalidRegistrationData: "InvalidRegistrationData"; /** The key given for the BigDB object is not a valid BigDB key. Keys must be between 1 and 50 characters. Only letters, numbers, hyphens, underbars, and spaces are allowed. */ readonly InvalidBigDBKey: "InvalidBigDBKey"; /** The object exceeds the maximum allowed size for BigDB objects. */ readonly BigDBObjectTooLarge: "BigDBObjectTooLarge"; /** Could not locate the database object. */ readonly BigDBObjectDoesNotExist: "BigDBObjectDoesNotExist"; /** The specified table does not exist. */ readonly UnknownTable: "UnknownTable"; /** The specified index does not exist. */ readonly UnknownIndex: "UnknownIndex"; /** The value given for the index, does not match the expected type. */ readonly InvalidIndexValue: "InvalidIndexValue"; /** The operation was aborted because the user attempting the operation was not the original creator of the object accessed. */ readonly NotObjectCreator: "NotObjectCreator"; /** The key is in use by another database object */ readonly KeyAlreadyUsed: "KeyAlreadyUsed"; /** BigDB object could not be saved using optimistic locks as it's out of date. */ readonly StaleVersion: "StaleVersion"; /** Cannot create circular references inside database objects */ readonly CircularReference: "CircularReference"; /** The server could not complete the heartbeat */ readonly HeartbeatFailed: "HeartbeatFailed"; /** The game code is invalid */ readonly InvalidGameCode: "InvalidGameCode"; /** Cannot access coins or items before vault has been loaded. Please refresh the vault first. */ readonly VaultNotLoaded: "VaultNotLoaded"; /** There is no PayVault provider with the specified id */ readonly UnknownPayVaultProvider: "UnknownPayVaultProvider"; /** The specified PayVault provider does not support direct purchase */ readonly DirectPurchaseNotSupportedByProvider: "DirectPurchaseNotSupportedByProvider"; /** The specified PayVault provider does not support buying coins */ readonly BuyingCoinsNotSupportedByProvider: "BuyingCoinsNotSupportedByProvider"; /** The user does not have enough coins in the PayVault to complete the purchase or debit. */ readonly NotEnoughCoins: "NotEnoughCoins"; /** The item does not exist in the vault. */ readonly ItemNotInVault: "ItemNotInVault"; /** The chosen provider rejected one or more of the purchase arguments */ readonly InvalidPurchaseArguments: "InvalidPurchaseArguments"; /** The chosen provider is not configured correctly in the admin panel */ readonly InvalidPayVaultProviderSetup: "InvalidPayVaultProviderSetup"; /** Unable to locate the custom PartnerPay action with the given key */ readonly UnknownPartnerPayAction: "UnknownPartnerPayAction"; /** The given type was invalid */ readonly InvalidType: "InvalidType"; /** The index was out of bounds from the range of acceptable values */ readonly IndexOutOfBounds: "IndexOutOfBounds"; /** The given identifier does not match the expected format */ readonly InvalidIdentifier: "InvalidIdentifier"; /** The given argument did not have the expected value */ readonly InvalidArgument: "InvalidArgument"; /** This client has been logged out */ readonly LoggedOut: "LoggedOut"; /** The given segment was invalid. */ readonly InvalidSegment: "InvalidSegment"; /** Cannot access requests before Refresh() has been called. */ readonly GameRequestsNotLoaded: "GameRequestsNotLoaded"; /** Cannot access achievements before Refresh() has been called. */ readonly AchievementsNotLoaded: "AchievementsNotLoaded"; /** Cannot find the achievement with the specified id. */ readonly UnknownAchievement: "UnknownAchievement"; /** Cannot access notification endpoints before Refresh() has been called. */ readonly NotificationsNotLoaded: "NotificationsNotLoaded"; /** The given notifications endpoint is invalid */ readonly InvalidNotificationsEndpoint: "InvalidNotificationsEndpoint"; /** There is an issue with the network */ readonly NetworkIssue: "NetworkIssue"; /** Cannot access OneScore before Refresh() has been called. */ readonly OneScoreNotLoaded: "OneScoreNotLoaded"; /** The Publishing Network features are only avaliable when authenticated to PlayerIO using Publishing Network authentication. Authentication methods are managed in the connections setting of your game in the admin panel on PlayerIO. */ readonly PublishingNetworkNotAvailable: "PublishingNetworkNotAvailable"; /** Cannot access profile, friends, ignored before Publishing Network has been loaded. Please refresh Publishing Network first. */ readonly PublishingNetworkNotLoaded: "PublishingNetworkNotLoaded"; /** The dialog was closed by the user */ readonly DialogClosed: "DialogClosed"; /** Check cookie required. */ readonly AdTrackCheckCookie: "AdTrackCheckCookie"; readonly codes: { readonly 0: "UnsupportedMethod"; readonly 1: "GeneralError"; readonly 2: "InternalError"; readonly 3: "AccessDenied"; readonly 4: "InvalidMessageFormat"; readonly 5: "MissingValue"; readonly 6: "GameRequired"; readonly 7: "ExternalError"; readonly 8: "ArgumentOutOfRange"; readonly 9: "GameDisabled"; readonly 10: "UnknownGame"; readonly 11: "UnknownConnection"; readonly 12: "InvalidAuth"; readonly 13: "NoServersAvailable"; readonly 14: "RoomDataTooLarge"; readonly 15: "RoomAlreadyExists"; readonly 16: "UnknownRoomType"; readonly 17: "UnknownRoom"; readonly 18: "MissingRoomId"; readonly 19: "RoomIsFull"; readonly 20: "NotASearchColumn"; readonly 21: "QuickConnectMethodNotEnabled"; readonly 22: "UnknownUser"; readonly 23: "InvalidPassword"; readonly 24: "InvalidRegistrationData"; readonly 25: "InvalidBigDBKey"; readonly 26: "BigDBObjectTooLarge"; readonly 27: "BigDBObjectDoesNotExist"; readonly 28: "UnknownTable"; readonly 29: "UnknownIndex"; readonly 30: "InvalidIndexValue"; readonly 31: "NotObjectCreator"; readonly 32: "KeyAlreadyUsed"; readonly 33: "StaleVersion"; readonly 34: "CircularReference"; readonly 40: "HeartbeatFailed"; readonly 41: "InvalidGameCode"; readonly 50: "VaultNotLoaded"; readonly 51: "UnknownPayVaultProvider"; readonly 52: "DirectPurchaseNotSupportedByProvider"; readonly 54: "BuyingCoinsNotSupportedByProvider"; readonly 55: "NotEnoughCoins"; readonly 56: "ItemNotInVault"; readonly 57: "InvalidPurchaseArguments"; readonly 58: "InvalidPayVaultProviderSetup"; readonly 70: "UnknownPartnerPayAction"; readonly 80: "InvalidType"; readonly 81: "IndexOutOfBounds"; readonly 82: "InvalidIdentifier"; readonly 83: "InvalidArgument"; readonly 84: "LoggedOut"; readonly 90: "InvalidSegment"; readonly 100: "GameRequestsNotLoaded"; readonly 110: "AchievementsNotLoaded"; readonly 111: "UnknownAchievement"; readonly 120: "NotificationsNotLoaded"; readonly 121: "InvalidNotificationsEndpoint"; readonly 130: "NetworkIssue"; readonly 131: "OneScoreNotLoaded"; readonly 200: "PublishingNetworkNotAvailable"; readonly 201: "PublishingNetworkNotLoaded"; readonly 301: "DialogClosed"; readonly 302: "AdTrackCheckCookie"; }; }; }