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: 45c4679d-1946-429d-baad-37912b19538b
parent 41a4f385
......@@ -8,17 +8,17 @@ enum ErrorType {
class Exception
%Exception Exception(SIP_Exception)
#include <Exceptions.h>
using namespace lima;
Exception(Layer layer, ErrorType err_type, std::string err_desc,
std::string file_name, std::string funct_name, int line_nr);
const char *detail = sipExceptionRef.getErrMsg().c_str();
std::string getErrMsg() const;
PyErr_SetString(sipException_std_exception, detail);
\ 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