Fawkes API
Fawkes Development Version
|
23 #ifndef _SYNCPOINT_EXCEPTIONS_H_
24 #define _SYNCPOINT_EXCEPTIONS_H_
26 #include <core/exception.h>
33 class SyncPointAlreadyOpenedException :
public Exception
42 append(
"Component '%s' called get_syncpoint() for identifier '%s', but is already watching",
60 append(
"Component '%s' called emit for SyncPoint '%s', but is not a watcher",
69 class SyncPointNonWatcherCalledWaitException :
public Exception
78 append(
"Component '%s' called wait for SyncPoint '%s', but is not a watcher",
87 class SyncPointReleasedDoesNotExistException :
public Exception
96 append(
"Component '%s' tried to release non-existing SyncPoint '%s'", component, identifier);
112 append(
"Component '%s' tried to release SyncPoint '%s' but is not a watcher",
121 class SyncPointInvalidIdentifierException :
public Exception
129 append(
"Tried to construct a SyncPoint with invalid identifier ('%s'). "
130 "Identifier must be a non-empty absolute path (e.g. '/path/to/syncpoint')"
131 " and may not end with '/'",
139 class SyncPointInvalidComponentException :
public Exception
148 append(
"Invalid component name '%s' while accessing SyncPoint '%s'", component, identifier);
164 append(
"Component '%s' called wait() on SyncPoint '%s', but is already waiting",
173 class SyncPointNonEmitterCalledEmitException :
public Exception
182 append(
"Component '%s' called emit for SyncPoint '%s', "
183 "but is not a registered emitter",
191 class SyncPointInvalidTypeException :
public Exception
197 append(
"Invalid SyncPoint Wakeup type.");
211 append(
"Component '%s' called emit for SyncPoint '%s', "
212 "but is still registered as emitter",
The component called release but is still registered as emitter.
Emit was called by a component which isn't in the watcher set (or wrong component argument was passed...
SyncPointNonEmitterCalledEmitException(const char *component, const char *identifier)
Constructor.
SyncPointAlreadyOpenedException(const char *component, const char *identifier)
Constructor.
SyncPointNonWatcherCalledWaitException(const char *component, const char *identifier)
Constructor.
SyncPointNonWatcherCalledEmitException(const char *component, const char *identifier)
Constructor.
Release was called by a component which isn't a watcher.
SyncPointInvalidIdentifierException(const char *identifier)
Constructor.
SyncPointReleasedByNonWatcherException(const char *component, const char *identifier)
Constructor.
void append(const char *format,...)
Append messages to the message list.
A component called wait() but is already waiting.
SyncPointCannotReleaseEmitter(const char *component, const char *identifier)
Constructor.
SyncPointMultipleWaitCallsException(const char *component, const char *identifier)
Constructor.
SyncPointInvalidTypeException()
Constructor.
SyncPointReleasedDoesNotExistException(const char *component, const char *identifier)
Constructor.
SyncPointInvalidComponentException(const char *component, const char *identifier)
Constructor.