File: exception.rst

package info (click to toggle)
bitwuzla 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 43,292 kB
  • sloc: cpp: 94,870; python: 3,254; ansic: 1,613; sh: 50; makefile: 10
file content (46 lines) | stat: -rw-r--r-- 1,348 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Exception
---------

- class :cpp:class:`bitwuzla::Exception`
- class :cpp:class:`bitwuzla::option::Exception`
- class :cpp:class:`bitwuzla::parser::Exception`

----

The C++ API of Bitwuzla communicates errors via exceptions. The base class for
all exceptions is :cpp:class:`bitwuzla::Exception`.
Configuration errors that occur while setting up :cpp:class:`bitwuzla::Options`
throw a :cpp:class:`bitwuzla::option::Exception`, and errors encountered while
parsing throw a :cpp:class:`bitwuzla::parser::Exception`.

In general, exceptions indicate that the associated object may be in an unsafe
state and should no longer be used. An exception to this rule are option
exceptions, which are thrown before the state of the associated option object
is modified and thus allow recovering from configuration errors. That is,
if a :cpp:class:`bitwuzla::option::Exception` is throw, the associated
:cpp:class:`bitwuzla::Options` object can still be used.

----

:code:`namespace bitwuzla {`

.. doxygenclass:: bitwuzla::Exception
    :project: Bitwuzla_cpp
    :members:

:code:`namespace bitwuzla::option {`

.. doxygenclass:: bitwuzla::option::Exception
    :project: Bitwuzla_cpp
    :members:

:code:`}`

:code:`namespace bitwuzla::parser {`

.. doxygenclass:: bitwuzla::parser::Exception
    :project: Bitwuzla_cpp
    :members:

:code:`}`
:code:`}`