GHS
Leader Election Based on GHS Minimum Spanning Tree
errno.h
Go to the documentation of this file.
1 
41 #ifndef LE_ERRNO_H
42 #define LE_ERRNO_H
43 
44 namespace le{
49  enum Errno{
50  OK = 0,
86  };
87 
92  const char* strerror( const Errno e);
93 
94 }
95 
96 #endif
le::SET_INVALID_EDGE_METRIC
@ SET_INVALID_EDGE_METRIC
add- or set edge failed because metric_val==WORST_METRIC
Definition: errno.h:71
le::PROCESS_NO_EDGE_FOUND
@ PROCESS_NO_EDGE_FOUND
Unable to process the message when we don't have an edge to that agent.
Definition: errno.h:58
le::SET_INVALID_EDGE_NO_AGENT
@ SET_INVALID_EDGE_NO_AGENT
add- or set edge failed because of NO_AGENT as peer/root
Definition: errno.h:73
le::NO_SUCH_PEER
@ NO_SUCH_PEER
Cannot find peer idx – no edge or unrecognized ID?
Definition: errno.h:77
le::Errno
Errno
Definition: errno.h:49
le::IMPL_REQ_PEER_MY_ID
@ IMPL_REQ_PEER_MY_ID
Cannot treat my_id as peer – bad message?
Definition: errno.h:78
le::ERR_QUEUE_MSGS
@ ERR_QUEUE_MSGS
Unable to enqueue messages, received seque::Retcode not OK.
Definition: errno.h:57
le::strerror
const char * strerror(const Errno e)
Definition: errno.cpp:44
le::PROCESS_NOTME
@ PROCESS_NOTME
Could not process a message not directed towards this agent.
Definition: errno.h:52
le::SRCH_INAVLID_SENDER
@ SRCH_INAVLID_SENDER
There is no reason to expect a SRCH message from this sender (usually parent and MST link required)
Definition: errno.h:55
le::SET_INVALID_EDGE_NOT_ROOT
@ SET_INVALID_EDGE_NOT_ROOT
add- or set edge failed because edge was not rooted on my_id
Definition: errno.h:72
le::CAST_INVALID_EDGE
@ CAST_INVALID_EDGE
*cast operation failed because of bad edge
Definition: errno.h:69
le
Definition: agent.h:43
le::PARENT_UNRECOGNIZED
@ PARENT_UNRECOGNIZED
Cannot set parent ID to unrecognized node (no edge to them!)
Definition: errno.h:75
le::ERR_NO_SUCH_ELEMENT
@ ERR_NO_SUCH_ELEMENT
Operation failed, there are less elements than the given index in the queue.
Definition: errno.h:85
le::SET_INVALID_EDGE_SELF_LOOP
@ SET_INVALID_EDGE_SELF_LOOP
add- or set edge failed because Edge.peer == my_id
Definition: errno.h:74
le::PARENT_REQ_MST
@ PARENT_REQ_MST
Cannot set parent ID to non-MST node (bad edge type)
Definition: errno.h:76
le::ERR_IMPL
@ ERR_IMPL
Implementation error: Reached branch that should not have been reachable.
Definition: errno.h:68
le::JOIN_INIT_BAD_LEVEL
@ JOIN_INIT_BAD_LEVEL
Told to init join to another partition, but level unrecognized.
Definition: errno.h:65
le::UNEXPECTED_SRCH_RET
@ UNEXPECTED_SRCH_RET
Unexpected srch_ret message at this time (not searching or not waiting for that agent)
Definition: errno.h:59
le::JOIN_MY_LEADER
@ JOIN_MY_LEADER
Other partition suggested we join our own partition.
Definition: errno.h:66
le::PROCESS_SELFMSG
@ PROCESS_SELFMSG
Could not process a message from self.
Definition: errno.h:51
le::BAD_MSG
@ BAD_MSG
Likely malformed message.
Definition: errno.h:61
le::JOIN_BAD_LEVEL
@ JOIN_BAD_LEVEL
Received join message with a non-matching level, yet we received join msg with different level.
Definition: errno.h:63
le::SRCH_STILL_WAITING
@ SRCH_STILL_WAITING
THere is no way to process a SRCH message when we're still executing the last search ( waiting_count(...
Definition: errno.h:56
le::NO_AGENTS
@ NO_AGENTS
Operation failed because we have no outgoing edges.
Definition: errno.h:81
le::PARTIAL_RESULT
@ PARTIAL_RESULT
When returning the result, this means we have not converged yet.
Definition: errno.h:80
le::JOIN_UNEXPECTED_REPLY
@ JOIN_UNEXPECTED_REPLY
received higher-level join message: Impossible since we should not have replied to their SRCH yet
Definition: errno.h:67
le::TOO_MANY_AGENTS
@ TOO_MANY_AGENTS
Set- or add edge failed, too many agents in static storage already.
Definition: errno.h:79
le::ERR_QUEUE_FULL
@ ERR_QUEUE_FULL
Operation failed, the queue is full.
Definition: errno.h:82
le::OK
@ OK
The operation was successful.
Definition: errno.h:50
le::JOIN_INIT_BAD_LEADER
@ JOIN_INIT_BAD_LEADER
Told to init join to another parition, but leader unrecognized.
Definition: errno.h:64
le::ERR_BAD_IDX
@ ERR_BAD_IDX
Operation failed and is not possible to succeed: that idx is beyond the static size of the queue.
Definition: errno.h:84
le::PROCESS_REQ_MST
@ PROCESS_REQ_MST
This type of message (possibly only at this time) should have come over and MST link,...
Definition: errno.h:54
le::JOIN_BAD_LEADER
@ JOIN_BAD_LEADER
Received join message with a leader not our own, yet we are not on a partition boundary.
Definition: errno.h:62
le::ERR_QUEUE_EMPTY
@ ERR_QUEUE_EMPTY
Operation failed, the queue is empty.
Definition: errno.h:83
le::SET_INVALID_EDGE
@ SET_INVALID_EDGE
add- or set edge failed because of malformed edge
Definition: errno.h:70
le::ACK_NOT_WAITING
@ ACK_NOT_WAITING
We cannot process an ACK message if we aren't expecting one.
Definition: errno.h:60
le::PROCESS_INVALID_TYPE
@ PROCESS_INVALID_TYPE
Did not recognize or could not process this type of message.
Definition: errno.h:53