Vuo
2.0.0
compiler
VuoCompilerException.cc
Go to the documentation of this file.
1
10
#include "
VuoCompilerException.hh
"
11
#include "
VuoCompilerIssue.hh
"
12
16
VuoCompilerException::VuoCompilerException
(
const
VuoCompilerIssue
&issue)
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
30
VuoCompilerException::VuoCompilerException
(
VuoCompilerIssues
*issues,
bool
ownsIssues)
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
41
VuoCompilerException::~VuoCompilerException
(
void
)
throw
()
42
{
43
if
(ownsIssues)
44
delete
issues;
45
free(shortDescription);
46
}
47
51
VuoCompilerIssues
*
VuoCompilerException::getIssues
(
void
)
const
52
{
53
return
issues;
54
}
55
59
const
char
*
VuoCompilerException::what
()
const
throw()
60
{
61
return
shortDescription;
62
}
Generated on Tue Oct 22 2019 18:07:47 for Vuo by
1.8.16