23 #ifndef _SYNCPOINT_EXCEPTIONS_H_ 24 #define _SYNCPOINT_EXCEPTIONS_H_ 26 #include <core/exception.h> 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",
78 append(
"Component '%s' called wait for SyncPoint '%s', but is not a watcher",
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",
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 '/'",
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",
182 append(
"Component '%s' called emit for SyncPoint '%s', " 183 "but is not a registered emitter",
197 append(
"Invalid SyncPoint Wakeup type.");
211 append(
"Component '%s' called emit for SyncPoint '%s', " 212 "but is still registered as emitter",
Invalid identifier used (i.e.
Release was called on a non-existing SyncPoint.
A component which is watching a SyncPoint, called get_syncpoint() for the same identifier.
The component called release but is still registered as emitter.
SyncPointReleasedByNonWatcherException(const char *component, const char *identifier)
Constructor.
SyncPointAlreadyOpenedException(const char *component, const char *identifier)
Constructor.
Emit was called by a component which isn't in the watcher set (or wrong component argument was passed...
SyncPointInvalidComponentException(const char *component, const char *identifier)
Constructor.
SyncPointNonWatcherCalledEmitException(const char *component, const char *identifier)
Constructor.
Fawkes library namespace.
SyncPointCannotReleaseEmitter(const char *component, const char *identifier)
Constructor.
SyncPointMultipleWaitCallsException(const char *component, const char *identifier)
Constructor.
SyncPointReleasedDoesNotExistException(const char *component, const char *identifier)
Constructor.
SyncPointNonWatcherCalledWaitException(const char *component, const char *identifier)
Constructor.
Base class for exceptions in Fawkes.
Release was called by a component which isn't a watcher.
Invalid component name used (i.e.
A component called wait() but is already waiting.
Emit was called on a SyncBarrier but the calling component is not registered as emitter.
Emit was called by a component which isn't in the watcher set (or wrong component argument was passed...
SyncPointInvalidTypeException()
Constructor.
SyncPointNonEmitterCalledEmitException(const char *component, const char *identifier)
Constructor.
void append(const char *format,...)
Append messages to the message list.
SyncPointInvalidIdentifierException(const char *identifier)
Constructor.