#include <NSXException.h>
Definition at line 49 of file NSXException.h.
Public Methods | |
| NSXException (NSException *nsexception) | |
| Constructs the object with the ObjC exception to wrap. | |
| NSException * | nsexception () const |
| Returns the enclosed ObjC exception. | |
| void | raise () const |
| Raises the enclosed ObjC exception. | |
| virtual const char * | what () const throw () |
| Just returns the class name, like std::exception::what() does. | |
Static Public Methods | |
| NSException * | NSExceptionForException (const std::exception *cppException) |
| Given a C++ std::exception object, will return an ObjC NSException object representing the exception. | |
| void | Raise (const std::exception *cppException) |
| Morphs a C++ exception into an ObjC exception and raises it. | |
| void | Throw (NSException *objCException) |
| Morphs an ObjC exception into a C++ exception and throws it. | |
|
|
Constructs the object with the ObjC exception to wrap.
Definition at line 52 of file NSXException.h. References nsexception(). Referenced by Throw(). |
|
|
Returns the enclosed ObjC exception.
Definition at line 58 of file NSXException.h. Referenced by NSExceptionForException(), and NSXException(). |
|
|
Given a C++ std::exception object, will return an ObjC NSException object representing the exception. Is smart in that it looks at the exception and will simply "unwrap" it if it's a C++-wrapper ObjC NSException already. I call this "morphing", and it's lossless.
Definition at line 87 of file NSXException.h. References nsexception(). Referenced by NSXRaisingDestructor::arm(), and Raise(). |
|
|
Morphs a C++ exception into an ObjC exception and raises it.
Definition at line 117 of file NSXException.h. References NSExceptionForException(), and raise(). |
|
|
Raises the enclosed ObjC exception.
Definition at line 63 of file NSXException.h. References raise(). |
|
|
Morphs an ObjC exception into a C++ exception and throws it.
Definition at line 132 of file NSXException.h. References NSXException(). |
|
|
Just returns the class name, like std::exception::what() does.
Definition at line 70 of file NSXException.h. |
1.2.17