Cortex  10.0.0-a4
Public Member Functions | Static Public Member Functions | List of all members
IECoreMaya::StatusException Class Reference

#include <StatusException.h>

+ Inheritance diagram for IECoreMaya::StatusException:

Public Member Functions

 StatusException (const MStatus &status)
 
virtual const char * type () const throw ()
 
- Public Member Functions inherited from IECore::Exception
 Exception (const char *what)
 Construct with cause of exception.
 
 Exception (const std::string &what)
 
const char * what () const override throw ()
 Return cause of exception.
 
Exceptionappend (const std::string &s)
 Appends the given string to the cause of the current exception.
 
Exceptionappend (const char *s)
 Appends the given string to the cause of the current exception.
 
Exceptionprepend (const std::string &s)
 Prepends the given string to the cause of the current exception.
 
Exceptionprepend (const char *s)
 Prepends the given string to the cause of the current exception.
 

Static Public Member Functions

static void throwIfError (const MStatus &status)
 

Additional Inherited Members

- Protected Attributes inherited from IECore::Exception
RefCountedStringPtr m_what
 

Detailed Description

This class provides a means of representing MStatus objects as exceptions, which might make for easier programming at times. In particular it can be thrown in python bindings and it'll be picked up and turned into a python exception.

Constructor & Destructor Documentation

IECoreMaya::StatusException::StatusException ( const MStatus &  status)

Constructs an exception to represent the given maya status code. It might be daft to make one representing MStatus::kSuccess, but no attempt is made to prevent that.

Member Function Documentation

static void IECoreMaya::StatusException::throwIfError ( const MStatus &  status)
static

If status represents an error, throws StatusException( status ), otherwise does nothing and returns.


The documentation for this class was generated from the following file: