Blue Brain BioExplorer
Errors.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2024, EPFL/Blue Brain Project
3  * All rights reserved. Do not distribute without permission.
4  * Responsible Author: Daniel.Nachbaur@epfl.ch
5  *
6  * This file is part of Blue Brain BioExplorer <https://github.com/BlueBrain/BioExplorer>
7  *
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License version 3.0 as published
10  * by the Free Software Foundation.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21 
22 #pragma once
23 
26 
27 namespace core
28 {
29 const auto ERROR_ID_MISSING_PARAMS = -1731;
30 const auto ERROR_ID_UNSUPPORTED_TYPE = -1732;
32 const auto ERROR_ID_LOADING_BINARY_FAILED = -1734;
33 
35 
37 
39  "Invalid binary received; no more files expected or "
40  "current file is complete",
42 
43 inline TaskRuntimeError LOADING_BINARY_FAILED(const std::string& error)
44 {
45  return {error, ERROR_ID_LOADING_BINARY_FAILED};
46 }
47 } // namespace core
const TaskRuntimeError MISSING_PARAMS
Definition: Errors.h:34
const TaskRuntimeError UNSUPPORTED_TYPE
Definition: Errors.h:36
const auto ERROR_ID_UNSUPPORTED_TYPE
Definition: Errors.h:30
const TaskRuntimeError INVALID_BINARY_RECEIVE
Definition: Errors.h:38
const auto ERROR_ID_LOADING_BINARY_FAILED
Definition: Errors.h:32
const auto ERROR_ID_INVALID_BINARY_RECEIVE
Definition: Errors.h:31
TaskRuntimeError LOADING_BINARY_FAILED(const std::string &error)
Definition: Errors.h:43
const auto ERROR_ID_MISSING_PARAMS
Definition: Errors.h:29