Adobe.com
Contents Suites Classes Class Index Member Index

AIErrorThrower Class Reference

A helper class to handle AIErr when code is designed to handle exceptions. More...

#include <AIErrorHandler.h>

List of all members.

Public Member Functions

 AIErrorThrower (AIErr err=kNoErr)
AIErrorThroweroperator= (AIErr err)
AIErrorThroweroperator= (AIErrorThrower err)
 operator AIErr () const AINOEXCEPT

Detailed Description

A helper class to handle AIErr when code is designed to handle exceptions.

Throws an error if the returned value is != kNoErr No explicit error handling is required on each statement.

Usage

AIErrorThrower error = sAIArt->GetArtType(art, &artType); // Throws if returned value is != kNoErr error = sAIArt->GetArtName(...); error = sAIPathStyle->GetPathStyle(...);


Constructor & Destructor Documentation

AIErrorThrower::AIErrorThrower ( AIErr  err = kNoErr  )  [inline]

Member Function Documentation

AIErrorThrower::operator AIErr (  )  const [inline]
AIErrorThrower& AIErrorThrower::operator= ( AIErrorThrower  err  )  [inline]
AIErrorThrower& AIErrorThrower::operator= ( AIErr  err  )  [inline]

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


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2014 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks