DACE 2.0 API Manual
Differential Algebra Core Engine
include
dace
DACEException.h
Go to the documentation of this file.
1
/******************************************************************************
2
* *
3
* DIFFERENTIAL ALGEBRA CORE ENGINE *
4
* *
5
*******************************************************************************
6
* *
7
* Copyright 2016 Politecnico di Milano (2014 Dinamica Srl) *
8
* Licensed under the Apache License, Version 2.0 (the "License"); *
9
* you may not use this file except in compliance with the License. *
10
* You may obtain a copy of the License at *
11
* *
12
* http://www.apache.org/licenses/LICENSE-2.0 *
13
* *
14
* Unless required by applicable law or agreed to in writing, software *
15
* distributed under the License is distributed on an "AS IS" BASIS, *
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
17
* See the License for the specific language governing permissions and *
18
* limitations under the License. *
19
* *
20
*******************************************************************************/
21
22
/*
23
* DACEException.h
24
*
25
* Created on: Mar 11, 2014
26
* Author: Dinamica Srl
27
*/
28
29
#ifndef DINAMICA_DACEEXCEPTION_H_
30
#define DINAMICA_DACEEXCEPTION_H_
31
32
// C++ stdlib classes used in this public interface
33
#include <exception>
34
#include <string>
35
#include <ostream>
36
37
namespace
DACE
{
38
40
class
DACE_API
DACEException
:
public
std::exception
41
{
42
private
:
43
int
m_x;
44
int
m_yy;
45
std::string msg;
46
static
int
severity;
47
static
bool
warning;
48
void
execute()
const
;
49
void
updateMessage();
50
51
public
:
52
DACEException
();
53
DACEException
(
const
int
exc_sv,
const
int
exc_id);
54
~
DACEException
()
throw
();
55
56
const
char
* what()
const
throw
();
57
static
void
setSeverity(
const
int
n);
58
static
void
setWarning(
const
bool
w);
59
60
friend
DACE_API
std::ostream&
operator<<
(std::ostream &out,
const
DACEException
&ex);
61
};
62
63
}
64
#endif
/* DINAMICA_DACEEXCEPTION_H_ */
DACE::operator<<
std::ostream & operator<<(std::ostream &out, const AlgebraicMatrix< DA > &obj)
DA specialization of output stream operator.
Definition:
AlgebraicMatrix.cpp:44
DACE::DACEException
Definition:
DACEException.h:40
DACE_API
#define DACE_API
Definition:
dace_s.h:33
DACE
Definition:
AlgebraicMatrix.cpp:39
Generated on Mon Apr 21 2025 17:52:03 for DACE 2.0 API Manual by
1.8.13