/*---------------------------------------------------------------------------* Project: Horizon File: boss_TaskError.h Copyright (C)2009 Nintendo Co., Ltd. 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. $Rev: 31623 $ *---------------------------------------------------------------------------*/ #ifndef NN_BOSS_BOSS_TASK_ERROR_H_ #define NN_BOSS_BOSS_TASK_ERROR_H_ #include #include #include #ifdef __cplusplus namespace nn { namespace boss { /*! @brief タスクのエラーを表すクラスです。タスクのエラー情報を取得する際に利用します。 */ class TaskError { public: /*! @brief コンストラクタです。 */ explicit TaskError(void); /*! @brief デストラクタです。 */ virtual ~TaskError(void); /*! @brief クラス内のプロパティの値を取得します。説明部のデータ型の領域を確保した後、呼び出してください。 下記のプロパティを使用できます。\n 識別子 説明 \n TASK_ERROR_RESULT_CODE タスク実行結果コード。データの型は、TaskResultCode です。 \n TASK_ERROR_CODE タスク実行時の通信エラーコード。データの型は、u32 です。 \n @param[in] type プロパティの識別子を指定します。 @param[out] pValue 値を指定します。 @param[in] size 値のサイズを指定します。 @return 関数の実行結果を返します。以下に挙げる Result を返します。 @retval ResultSuccess 取得に成功しました。 @retval ResultInvalidPropertyValue プロパティ値のポインタがNULLです。 @retval ResultInvalidPropertyType プロパティタイプがサポート外です。 @retval 上記以外 想定外のエラー(エラー内容については、@ref boss_Result.h を参照)。 */ nn::Result GetProperty(PropertyType type, void* pValue, size_t size); protected: friend class AccessConfig; TaskErrorInfo m_Error; }; } // end of namespace boss } // end of namespace nn #endif // __cplusplus #endif /* NN_BOSS_BOSS_TASK_ERROR_H_ */