Vuo  2.0.0
VuoCompilerException.cc
Go to the documentation of this file.
1 
10 #include "VuoCompilerException.hh"
11 #include "VuoCompilerIssue.hh"
12 
17  : VuoException(issue.getShortDescription(false), false)
18 {
19  issues = new VuoCompilerIssues(issue);
20  ownsIssues = true;
21  shortDescription = strdup(issues->getShortDescription(false).c_str());
22 }
23 
31  : VuoException(issues->getShortDescription(false), false)
32 {
33  this->issues = issues;
34  this->ownsIssues = ownsIssues;
35  this->shortDescription = strdup(issues->getShortDescription(false).c_str());
36 }
37 
42 {
43  if (ownsIssues)
44  delete issues;
45  free(shortDescription);
46 }
47 
52 {
53  return issues;
54 }
55 
59 const char * VuoCompilerException::what() const throw()
60 {
61  return shortDescription;
62 }