Re: Imath: exceptions w/o Iex


Larry Gritz
 

std::domain_error seems more on point

I would certainly like to see, as early in the process as practical, a non-throwing variant of every function that currently uses exceptions.



On Jun 5, 2020, at 1:57 PM, Owen T. via lists.aswf.io <ownthmpsn=protonmail.ch@...> wrote:

Seeing as we had decided to remove Iex from Imath I wanted to ask what kind of exceptions should be thrown in lieu of those included in Iex.

For instance, Vec2<T>::normalizeExc() will throw NullVecExc as you can't normalize a vector of length 0.

Should it instead now be std::range_error or something else entirely?


--
Larry Gritz




Join openexr-dev@lists.aswf.io to automatically receive all group messages.