/*---------------------------------------------------------------------------* Copyright (C) 2013-2014 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ // // Do not edit this file. // This file is automatically generated. // #ifndef NN_EC_RESULT_H_ #define NN_EC_RESULT_H_ #include #include #ifdef __cplusplus namespace nn { namespace ec { //! @addtogroup nn_ec_result //! @{ /*! @class nn::ec::ResultSystemError @brief System error. Handling this Result object catches all of the following Result objects. @li @ref nn::ec::ResultInvalidCountry @li @ref nn::ec::ResultInvalidLanguage @li @ref nn::ec::ResultInvalidMeta @li @ref nn::ec::ResultInternalError @li @ref nn::ec::ResultInternalErrorSysapp */ NN_DEFINE_RESULT_CONST_RANGE( ResultSystemError, nn::Result::LEVEL_FATAL, nn::RESULT_MODULE_NN_EC, 0, 0, 12800 ); /*! @class nn::ec::ResultInvalidCountry @brief Cannot get the console's country code setting. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultSystemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultInvalidCountry, nn::Result::LEVEL_FATAL, nn::RESULT_MODULE_NN_EC, 128, 128, 256 ); /*! @class nn::ec::ResultInvalidLanguage @brief Cannot get the console's language setting. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultSystemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultInvalidLanguage, nn::Result::LEVEL_FATAL, nn::RESULT_MODULE_NN_EC, 256, 256, 384 ); /*! @class nn::ec::ResultInvalidMeta @brief Cannot get the application's metadata. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultSystemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultInvalidMeta, nn::Result::LEVEL_FATAL, nn::RESULT_MODULE_NN_EC, 384, 384, 512 ); /*! @class nn::ec::ResultInternalError @brief Internal error. @n If this error occurs multiple times, please report it. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultSystemError Handling this Result object catches all of the following Result objects. @li @ref nn::ec::ResultInternalErrorSysapp */ NN_DEFINE_RESULT_CONST_RANGE( ResultInternalError, nn::Result::LEVEL_FATAL, nn::RESULT_MODULE_NN_EC, 6400, 6400, 12800 ); /*! @class nn::ec::ResultInternalErrorSysapp @brief The SYSAPP library API function call failed. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultSystemError @li @ref nn::ec::ResultInternalError */ NN_DEFINE_RESULT_CONST_RANGE( ResultInternalErrorSysapp, nn::Result::LEVEL_FATAL, nn::RESULT_MODULE_NN_EC, 6528, 6528, 6656 ); /*! @class nn::ec::ResultProgrammingError @brief Programming error. @n Implement your application so that this error does not occur. Handling this Result object catches all of the following Result objects. @li @ref nn::ec::ResultNotInitialized @li @ref nn::ec::ResultNotLoggedIn @li @ref nn::ec::ResultNotInForeground @li @ref nn::ec::ResultAlreadyInitialized @li @ref nn::ec::ResultInvalidArgument @li @ref nn::ec::ResultInvalidModule @li @ref nn::ec::ResultInvalidSession @li @ref nn::ec::ResultInvalidData @li @ref nn::ec::ResultOutOfMemory */ NN_DEFINE_RESULT_CONST_RANGE( ResultProgrammingError, nn::Result::LEVEL_USAGE, nn::RESULT_MODULE_NN_EC, 12800, 12800, 25600 ); /*! @class nn::ec::ResultNotInitialized @brief Indicates that the library has not been initialized. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultProgrammingError */ NN_DEFINE_RESULT_CONST_RANGE( ResultNotInitialized, nn::Result::LEVEL_USAGE, nn::RESULT_MODULE_NN_EC, 12928, 12928, 13056 ); /*! @class nn::ec::ResultNotLoggedIn @brief Not logged in to the shop server. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultProgrammingError */ NN_DEFINE_RESULT_CONST_RANGE( ResultNotLoggedIn, nn::Result::LEVEL_USAGE, nn::RESULT_MODULE_NN_EC, 13056, 13056, 13184 ); /*! @class nn::ec::ResultNotInForeground @brief The EC applet cannot run because the application is not in the foreground. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultProgrammingError */ NN_DEFINE_RESULT_CONST_RANGE( ResultNotInForeground, nn::Result::LEVEL_USAGE, nn::RESULT_MODULE_NN_EC, 13184, 13184, 13312 ); /*! @class nn::ec::ResultAlreadyInitialized @brief Indicates that the library is already initialized. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultProgrammingError */ NN_DEFINE_RESULT_CONST_RANGE( ResultAlreadyInitialized, nn::Result::LEVEL_USAGE, nn::RESULT_MODULE_NN_EC, 14208, 14208, 14336 ); /*! @class nn::ec::ResultInvalidArgument @brief Indicates that an argument is invalid. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultProgrammingError */ NN_DEFINE_RESULT_CONST_RANGE( ResultInvalidArgument, nn::Result::LEVEL_USAGE, nn::RESULT_MODULE_NN_EC, 15488, 15488, 15616 ); /*! @class nn::ec::ResultInvalidModule @brief The result passed was for a module not supported in @ref GetErrorCode. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultProgrammingError */ NN_DEFINE_RESULT_CONST_RANGE( ResultInvalidModule, nn::Result::LEVEL_USAGE, nn::RESULT_MODULE_NN_EC, 15616, 15616, 15744 ); /*! @class nn::ec::ResultInvalidSession @brief The session is invalid. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultProgrammingError */ NN_DEFINE_RESULT_CONST_RANGE( ResultInvalidSession, nn::Result::LEVEL_USAGE, nn::RESULT_MODULE_NN_EC, 15744, 15744, 15872 ); /*! @class nn::ec::ResultInvalidData @brief The data is invalid. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultProgrammingError */ NN_DEFINE_RESULT_CONST_RANGE( ResultInvalidData, nn::Result::LEVEL_USAGE, nn::RESULT_MODULE_NN_EC, 15872, 15872, 16000 ); /*! @class nn::ec::ResultOutOfMemory @brief Insufficient memory. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultProgrammingError */ NN_DEFINE_RESULT_CONST_RANGE( ResultOutOfMemory, nn::Result::LEVEL_USAGE, nn::RESULT_MODULE_NN_EC, 16768, 16768, 16896 ); /*! @class nn::ec::ResultLibraryError @brief Library error. @n Handle the error appropriately. Handling this Result object catches all of the following Result objects. @li @ref nn::ec::ResultNotFound @li @ref nn::ec::ResultNotConnected @li @ref nn::ec::ResultCanceled @li @ref nn::ec::ResultExcluded @li @ref nn::ec::ResultEshopNotInitialized @li @ref nn::ec::ResultNeedsNetworkUpdate @li @ref nn::ec::ResultNotInService @li @ref nn::ec::ResultWrongDownloadCode @li @ref nn::ec::ResultItemError @li @ref nn::ec::ResultItemUniqueIdMismatch @li @ref nn::ec::ResultItemNotPurchased @li @ref nn::ec::ResultItemAlreadyPurchased @li @ref nn::ec::ResultItemPartiallyPurchased @li @ref nn::ec::ResultItemUnreleased @li @ref nn::ec::ResultItemNotSold @li @ref nn::ec::ResultItemAlreadyInstalled @li @ref nn::ec::ResultItemNotRedeemable @li @ref nn::ec::ResultShoppingCartError @li @ref nn::ec::ResultShoppingCartFull @li @ref nn::ec::ResultShoppingCartAlreadyAdded @li @ref nn::ec::ResultShoppingCartPartiallyAdded @li @ref nn::ec::ResultDownloadCartError @li @ref nn::ec::ResultDownloadCartFull @li @ref nn::ec::ResultDownloadCartAlreadyAdded */ NN_DEFINE_RESULT_CONST_RANGE( ResultLibraryError, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 25600, 25600, 38400 ); /*! @class nn::ec::ResultNotFound @brief There is no data. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError */ NN_DEFINE_RESULT_CONST_RANGE( ResultNotFound, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 25728, 25728, 25856 ); /*! @class nn::ec::ResultNotConnected @brief Indicates that the system is not connected to the Internet. @n Connect to the network using the AC library. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError */ NN_DEFINE_RESULT_CONST_RANGE( ResultNotConnected, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 25856, 25856, 25984 ); /*! @class nn::ec::ResultCanceled @brief Specifies the communication process was canceled. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError */ NN_DEFINE_RESULT_CONST_RANGE( ResultCanceled, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 27008, 27008, 27136 ); /*! @class nn::ec::ResultExcluded @brief Indicates that the process was not executed because the EC applet was running or communication was taking place. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError */ NN_DEFINE_RESULT_CONST_RANGE( ResultExcluded, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 27136, 27136, 27264 ); /*! @class nn::ec::ResultEshopNotInitialized @brief Indicates that the Nintendo eShop initialization sequence has not completed. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError */ NN_DEFINE_RESULT_CONST_RANGE( ResultEshopNotInitialized, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 28288, 28288, 28416 ); /*! @class nn::ec::ResultNeedsNetworkUpdate @brief A system update is required. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError */ NN_DEFINE_RESULT_CONST_RANGE( ResultNeedsNetworkUpdate, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 28416, 28416, 28544 ); /*! @class nn::ec::ResultNotInService @brief Indicates that the service is not available. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError */ NN_DEFINE_RESULT_CONST_RANGE( ResultNotInService, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 28544, 28544, 28672 ); /*! @class nn::ec::ResultWrongDownloadCode @brief Not a valid download code. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError */ NN_DEFINE_RESULT_CONST_RANGE( ResultWrongDownloadCode, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 30720, 30720, 32000 ); /*! @class nn::ec::ResultItemError @brief An error that can occur when determining whether an item is purchasable, redeemable, or downloadable. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError Handling this Result object catches all of the following Result objects. @li @ref nn::ec::ResultItemUniqueIdMismatch @li @ref nn::ec::ResultItemNotPurchased @li @ref nn::ec::ResultItemAlreadyPurchased @li @ref nn::ec::ResultItemPartiallyPurchased @li @ref nn::ec::ResultItemUnreleased @li @ref nn::ec::ResultItemNotSold @li @ref nn::ec::ResultItemAlreadyInstalled @li @ref nn::ec::ResultItemNotRedeemable */ NN_DEFINE_RESULT_CONST_RANGE( ResultItemError, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 32000, 32000, 34560 ); /*! @class nn::ec::ResultItemUniqueIdMismatch @brief The unique IDs for the application and item are different. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultItemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultItemUniqueIdMismatch, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 32128, 32128, 32256 ); /*! @class nn::ec::ResultItemNotPurchased @brief The item has not been purchased. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultItemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultItemNotPurchased, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 32256, 32256, 32384 ); /*! @class nn::ec::ResultItemAlreadyPurchased @brief The item has already been purchased. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultItemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultItemAlreadyPurchased, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 32384, 32384, 32512 ); /*! @class nn::ec::ResultItemPartiallyPurchased @brief Indicates that some of the items in a multiple-content item have already been purchased. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultItemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultItemPartiallyPurchased, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 32512, 32512, 32640 ); /*! @class nn::ec::ResultItemUnreleased @brief The item has not been released yet. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultItemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultItemUnreleased, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 33024, 33024, 33152 ); /*! @class nn::ec::ResultItemNotSold @brief The item is not being sold. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultItemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultItemNotSold, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 33152, 33152, 33280 ); /*! @class nn::ec::ResultItemAlreadyInstalled @brief The item is already installed. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultItemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultItemAlreadyInstalled, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 33280, 33280, 33408 ); /*! @class nn::ec::ResultItemNotRedeemable @brief This is not an item obtained by specifying a download code. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultItemError */ NN_DEFINE_RESULT_CONST_RANGE( ResultItemNotRedeemable, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 33408, 33408, 33536 ); /*! @class nn::ec::ResultShoppingCartError @brief Indicates an error that occurs in @ref ShoppingCart::CheckItem. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError Handling this Result object catches all of the following Result objects. @li @ref nn::ec::ResultShoppingCartFull @li @ref nn::ec::ResultShoppingCartAlreadyAdded @li @ref nn::ec::ResultShoppingCartPartiallyAdded */ NN_DEFINE_RESULT_CONST_RANGE( ResultShoppingCartError, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 34560, 34560, 35840 ); /*! @class nn::ec::ResultShoppingCartFull @brief The upper limit on the number of items has been reached. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultShoppingCartError */ NN_DEFINE_RESULT_CONST_RANGE( ResultShoppingCartFull, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 34688, 34688, 34816 ); /*! @class nn::ec::ResultShoppingCartAlreadyAdded @brief The item has already been added to the shopping cart. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultShoppingCartError */ NN_DEFINE_RESULT_CONST_RANGE( ResultShoppingCartAlreadyAdded, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 34816, 34816, 34944 ); /*! @class nn::ec::ResultShoppingCartPartiallyAdded @brief Indicates that some of the items in a multiple-content item have already been added to the shopping cart. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultShoppingCartError */ NN_DEFINE_RESULT_CONST_RANGE( ResultShoppingCartPartiallyAdded, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 34944, 34944, 35072 ); /*! @class nn::ec::ResultDownloadCartError @brief Indicates an error that occurs in @ref DownloadCart::CheckItem. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError Handling this Result object catches all of the following Result objects. @li @ref nn::ec::ResultDownloadCartFull @li @ref nn::ec::ResultDownloadCartAlreadyAdded */ NN_DEFINE_RESULT_CONST_RANGE( ResultDownloadCartError, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 35840, 35840, 37120 ); /*! @class nn::ec::ResultDownloadCartFull @brief The upper limit on the number of items has been reached. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultDownloadCartError */ NN_DEFINE_RESULT_CONST_RANGE( ResultDownloadCartFull, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 35968, 35968, 36096 ); /*! @class nn::ec::ResultDownloadCartAlreadyAdded @brief Indicates that the item has already been added to the download cart. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultLibraryError @li @ref nn::ec::ResultDownloadCartError */ NN_DEFINE_RESULT_CONST_RANGE( ResultDownloadCartAlreadyAdded, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 36096, 36096, 36224 ); /*! @class nn::ec::ResultResponseError @brief A response error occurred. Handling this Result object catches all of the following Result objects. @li @ref nn::ec::ResultInvalidResponse @li @ref nn::ec::ResultUnderMaintenance @li @ref nn::ec::ResultServiceClosed @li @ref nn::ec::ResultUnexpectedResponse */ NN_DEFINE_RESULT_CONST_RANGE( ResultResponseError, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 38400, 38400, 51200 ); /*! @class nn::ec::ResultInvalidResponse @brief Indicates an invalid response. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultResponseError */ NN_DEFINE_RESULT_CONST_RANGE( ResultInvalidResponse, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 38656, 38656, 38784 ); /*! @class nn::ec::ResultUnderMaintenance @brief Indicates that maintenance is underway. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultResponseError */ NN_DEFINE_RESULT_CONST_RANGE( ResultUnderMaintenance, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 38784, 38784, 38912 ); /*! @class nn::ec::ResultServiceClosed @brief The service has been closed. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultResponseError */ NN_DEFINE_RESULT_CONST_RANGE( ResultServiceClosed, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 38912, 38912, 39040 ); /*! @class nn::ec::ResultUnexpectedResponse @brief Indicates an unexpected response. This result is subsumed by the following results and can be caught by handling any of them. @li @ref nn::ec::ResultResponseError */ NN_DEFINE_RESULT_CONST_RANGE( ResultUnexpectedResponse, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 51072, 51072, 51200 ); /*! @class nn::ec::ResultCurlError @brief Indicates that a communication error occurred. */ NN_DEFINE_RESULT_CONST_RANGE( ResultCurlError, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 128000, 128000, 256000 ); /*! @class nn::ec::ResultServerError @brief Indicates a server error. @n Get the error message using @ref GetLastServerErrorMessage. */ NN_DEFINE_RESULT_CONST_RANGE( ResultServerError, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 256000, 256000, 384000 ); /*! @class nn::ec::ResultNetworkUpdateCheckError @brief Indicates an error when checking for system updates. */ NN_DEFINE_RESULT_CONST_RANGE( ResultNetworkUpdateCheckError, nn::Result::LEVEL_STATUS, nn::RESULT_MODULE_NN_EC, 384000, 384000, 396800 ); //! @} } // namespace ec } // namespace nn #endif // __cplusplus #endif // NN_EC_RESULT_H_