--- parser3/src/classes/math.C 2002/02/18 12:10:53 1.14 +++ parser3/src/classes/math.C 2002/03/27 15:30:34 1.16 @@ -4,7 +4,7 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: math.C,v 1.14 2002/02/18 12:10:53 paf Exp $ + $Id: math.C,v 1.16 2002/03/27 15:30:34 paf Exp $ */ #include "pa_common.h" @@ -29,7 +29,7 @@ public: void configure_admin(Request& r); public: // Methoded - bool used_directly() { return true; } + bool used_directly() { return false; } }; // methods @@ -40,7 +40,7 @@ static void _random(Request& r, const St Value& range=params->as_junction(0, "range must be expression"); double top=r.process(range).as_double(); if(top<=1) - throw Exception(0, 0, + throw Exception("parser.runtime", &method_name, "top must be above 1 (%g)", top);