ufl team mailing list archive
-
ufl team
-
Mailing list archive
-
Message #00061
Re: output module
On Fri, Mar 14, 2008 at 03:51:34PM +0100, Martin Sandve Alnæs wrote:
> Question found in roadmap file:
> # Misc:
> - When do we raise excepion and when do we use assert?
>
> I've defined
> ufl_assert(condition, message)
> ufl_warning(message)
> ufl_error(message)
> in output.py
>
> Both ufl_error and ufl_assert will raise an UFLException, but also
> print message to output. The redirection stuff isn't implemented, I
> figured I'd look at the built in python logging module for this.
>
> Anyway, the output.py file is shorter than this email, so just look at it.
Looks good!
--
Anders
References