| 1 | /* |
| 2 | * Copyright (c) 2018-2020 Atmosphère-NX |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms and conditions of the GNU General Public License, |
| 6 | * version 2, as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 11 | * more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | |
| 17 | #pragma once |
| 18 | #include <vapours/results/results_common.hpp> |
| 19 | |
| 20 | namespace ams::erpt { |
| 21 | |
| 22 | R_DEFINE_NAMESPACE_RESULT_MODULE(147); |
| 23 | |
| 24 | R_DEFINE_ERROR_RESULT(NotInitialized, 1); |
| 25 | R_DEFINE_ERROR_RESULT(AlreadyInitialized, 2); |
| 26 | R_DEFINE_ERROR_RESULT(OutOfArraySpace, 3); |
| 27 | R_DEFINE_ERROR_RESULT(OutOfFieldSpace, 4); |
| 28 | R_DEFINE_ERROR_RESULT(OutOfMemory, 5); |
| 29 | R_DEFINE_ERROR_RESULT(InvalidArgument, 7); |
| 30 | R_DEFINE_ERROR_RESULT(NotFound, 8); |
| 31 | R_DEFINE_ERROR_RESULT(FieldCategoryMismatch, 9); |
| 32 | R_DEFINE_ERROR_RESULT(FieldTypeMismatch, 10); |
| 33 | R_DEFINE_ERROR_RESULT(AlreadyExists, 11); |
| 34 | R_DEFINE_ERROR_RESULT(CorruptJournal, 12); |
| 35 | R_DEFINE_ERROR_RESULT(CategoryNotFound, 13); |
| 36 | R_DEFINE_ERROR_RESULT(RequiredContextMissing, 14); |
| 37 | R_DEFINE_ERROR_RESULT(RequiredFieldMissing, 15); |
| 38 | R_DEFINE_ERROR_RESULT(FormatterError, 16); |
| 39 | R_DEFINE_ERROR_RESULT(InvalidPowerState, 17); |
| 40 | R_DEFINE_ERROR_RESULT(ArrayFieldTooLarge, 18); |
| 41 | R_DEFINE_ERROR_RESULT(AlreadyOwned, 19); |
| 42 | |
| 43 | } |
| 44 | |