41 #if !defined(__CAException_h__)
42 #define __CAException_h__
48 #if !defined(__COREAUDIO_USE_FLAT_INCLUDES__)
49 #include <CoreAudio/CoreAudioTypes.h>
51 #include "CoreAudioTypes.h"
62 CAException(OSStatus inError) : mError(inError) {}
63 CAException(
const CAException& inException) : mError(inException.mError) {}
64 CAException& operator=(
const CAException& inException) { mError = inException.mError;
return *
this; }
67 OSStatus GetError()
const {
return mError; }
74 #define CACatch }catch(const CAException& inException) {} catch(...) {}
75 #define CASwallowException(inExpression) try { inExpression; } catch(...) {}