libtcspc C++ API
Streaming TCSPC and time tag data processing
Loading...
Searching...
No Matches
Exceptions

Description

Exception types.

In libtcspc, exceptions are used to signal the end of processing when a processor either detects an error (see Errors) or decides that the end of (the interesting part of) the input has been reached (see tcspc::end_of_processing).

Usually, exceptions that indicate errors during processing are derived from std::runtime_error. However, other exceptions may also be thrown, such as std::bad_alloc.

Outside of processing, programming errors such as passing an invalid argument are reported by throwing an exception derived from std::logic_error. This choice was made (as opposed to, say, using assert()) to facilitate interoperation with environments like Python.

See also
tcspc::warning_event, tcspc::stop_with_error

Topics

 Errors
 Exceptions representing errors generated by processors.

Classes

class  tcspc::acquisition_halted
 Exception thrown when acquisition was halted. More...
class  tcspc::end_of_processing
 Exception type used to indicate processor-initiated non-error end of processing. More...
class  tcspc::source_halted
 Exception type thrown to pumping thread when buffer source was discontinued without reaching the point of flushing. More...