Commit fa187781 authored by ahoms's avatar ahoms
Browse files

* changed lima::Exception from a class to a child of Python Exception


git-svn-id: https://scm.blissgarden.org/svn/lima/trunk@161 45c4679d-1946-429d-baad-37912b19538b
parent 41a4f385
......@@ -8,17 +8,17 @@ enum ErrorType {
};
class Exception
%Exception Exception(SIP_Exception)
{
%TypeHeaderCode
#include <Exceptions.h>
using namespace lima;
%End
public:
Exception(Layer layer, ErrorType err_type, std::string err_desc,
std::string file_name, std::string funct_name, int line_nr);
%RaiseCode
const char *detail = sipExceptionRef.getErrMsg().c_str();
std::string getErrMsg() const;
};
SIP_BLOCK_THREADS
PyErr_SetString(sipException_std_exception, detail);
SIP_UNBLOCK_THREADS
%End
};
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment