Raising an Exception would be the usual way.

-Chris

On Tue, Apr 27, 2010 at 4:18 PM, shawnpatapoff <[email protected]>wrote:

> This may be a more basic question.
>
> I have a class being created and I'm testing the arguments when the
> class is called. Within the class can I error out if the types are
> wrong and prevent the class from returning? How do you guys handle
> this?
>
> Cheers,
> Shawn
>
> --
> http://groups.google.com/group/python_inside_maya

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to