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",
Base class for exceptions in Fawkes.
void append(const char *format,...) noexcept
Append messages to the message list.
A component which is watching a SyncPoint, called get_syncpoint() for the same identifier.
SyncPointAlreadyOpenedException(const char *component, const char *identifier)
Constructor.
The component called release but is still registered as emitter.
SyncPointCannotReleaseEmitter(const char *component, const char *identifier)
Constructor.
Invalid component name used (i.e.
SyncPointInvalidComponentException(const char *component, const char *identifier)
Constructor.
Invalid identifier used (i.e.
SyncPointInvalidIdentifierException(const char *identifier)
Constructor.
SyncPointInvalidTypeException()
Constructor.
A component called wait() but is already waiting.
SyncPointMultipleWaitCallsException(const char *component, const char *identifier)
Constructor.
Emit was called on a SyncBarrier but the calling component is not registered as emitter.
SyncPointNonEmitterCalledEmitException(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...
SyncPointNonWatcherCalledEmitException(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...
SyncPointNonWatcherCalledWaitException(const char *component, const char *identifier)
Constructor.
Release was called by a component which isn't a watcher.
SyncPointReleasedByNonWatcherException(const char *component, const char *identifier)
Constructor.
Release was called on a non-existing SyncPoint.
SyncPointReleasedDoesNotExistException(const char *component, const char *identifier)
Constructor.
Fawkes library namespace.