Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
open_class_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CLASS_API
open_class_api
Commits
8c2d7311
Commit
8c2d7311
authored
2 years ago
by
Querejeta Lomas, Leire
Browse files
Options
Downloads
Patches
Plain Diff
Subir nuevo archivo
parent
f7ffa8f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/api/class/include/class/class_error.hpp
+40
-0
40 additions, 0 deletions
src/api/class/include/class/class_error.hpp
with
40 additions
and
0 deletions
src/api/class/include/class/class_error.hpp
0 → 100644
+
40
−
0
View file @
8c2d7311
/**
* @file class_error.hpp
* @author Alfonso Dominguez <alfonso.dominguez@tecnalia.com> and Leire Querejeta Lomas <leire.querejeta@tecnalia.com>
* @date 2020
*
* Copyright 2020 Tecnalia Research & Innovation.
* Distributed under the GNU GPL v3.
* For full terms see https://www.gnu.org/licenses/gpl.txt
*
* @brief Errors thrown by the API methods
*/
#pragma once
//! Errors thrown by the API methods.
class
ClassError
{
public:
//! Enum for errors
enum
Error
{
CLASS_NO_ERROR
=
0
,
///< No error
ERROR_CORE_NULL
=
-
1
,
///< Core object is null
ERROR_SENDING_MSG
=
-
2
,
///< Error sending msg to server
ERROR_NO_ELEC_WITH_ID
=
-
3
,
///< There is no electrode with the specified ID
ERROR_CATHODE_AMP_DIFFERENT_SIZE
=
-
4
,
///< Cathode and Amp vectors have different size
ERROR_NO_VELEC_WITH_ID
=
-
5
,
///< There is no virtual electrode with the specified ID
ERROR_NO_VELEC_WITH_NAME
=
-
6
,
///< There is no virtual electrode with the specified name
ERROR_DEVICE_NOT_ACQUIRING
=
-
7
,
///< The device is not acquiring frames/impedances. Have you configured for it?
ERROR_UDP_CLIENT_NULL
=
-
8
,
///< The sender object is null
ERROR_NOT_VALID_ORDER
=
-
9
,
///< Filter order is negative. It must be a integer > 0
ERROR_NOT_VALID_MS
=
-
10
,
///< Duration for buffer is negative. It must be a double > 0
ERROR_CB_NULL
=
-
11
,
///< Class callback is NULL. A callback must be set before getting any value
ERROR_DIF_VECTOR_SIZE
=
-
12
,
///< Vector sizes are different
ERROR_EMPTY_CATHODE
=
-
13
,
///< Cathode vector is empty
ERROR_EMPTY_ANODE
=
-
14
,
///< Cathode vector is empty
ERROR_NOT_VALID_CHANNEL_ID
=
-
15
,
///< Channel id is not in the limits (>=1 and <=16)
ERROR_NOT_VALID_VALUE
=
-
16
///< Out of range value
};
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment