Base class for ATS exception. Clients should subclass as appropriate. This is intended to carry pre-allocated text along so that it can be thrown without any additional memory allocation. */
| 38 | additional memory allocation. |
| 39 | */ |
| 40 | class Exception |
| 41 | { |
| 42 | public: |
| 43 | /// Default constructor. |
| 44 | Exception(); |
| 45 | /// Construct with alternate @a text. |
| 46 | Exception(const char *text ///< Alternate text for exception. |
| 47 | ); |
| 48 | |
| 49 | static const char *const DEFAULT_TEXT; |
| 50 | |
| 51 | protected: |
| 52 | const char *m_text; |
| 53 | }; |
| 54 | |
| 55 | // ---------------------------------------------------------- |
| 56 | // Inline implementations. |
no outgoing calls