| 1 | // |
| 2 | // SPDX-License-Identifier: BSD-3-Clause |
| 3 | // Copyright (c) Contributors to the OpenEXR Project. |
| 4 | // |
| 5 | |
| 6 | |
| 7 | #ifndef INCLUDED_IEXMATHEXC_H |
| 8 | #define INCLUDED_IEXMATHEXC_H |
| 9 | |
| 10 | #include "IexBaseExc.h" |
| 11 | |
| 12 | IEX_INTERNAL_NAMESPACE_HEADER_ENTER |
| 13 | |
| 14 | //--------------------------------------------------------- |
| 15 | // Exception classess which correspond to specific floating |
| 16 | // point exceptions. |
| 17 | //--------------------------------------------------------- |
| 18 | |
| 19 | DEFINE_EXC_EXP (IEX_EXPORT, OverflowExc, MathExc) // Overflow |
| 20 | DEFINE_EXC_EXP (IEX_EXPORT, UnderflowExc, MathExc) // Underflow |
| 21 | DEFINE_EXC_EXP (IEX_EXPORT, DivzeroExc, MathExc) // Division by zero |
| 22 | DEFINE_EXC_EXP (IEX_EXPORT, InexactExc, MathExc) // Inexact result |
| 23 | DEFINE_EXC_EXP (IEX_EXPORT, InvalidFpOpExc, MathExc) // Invalid operation |
| 24 | |
| 25 | IEX_INTERNAL_NAMESPACE_HEADER_EXIT |
| 26 | |
| 27 | #endif // INCLUDED_IEXMATHEXC_H |
| 28 | |