Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cameo
cameo
Commits
8d4b64d6
Commit
8d4b64d6
authored
Dec 15, 2016
by
legoc
Browse files
Exception when an unmanaged application cannot register.
parent
d3bba28e
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/Makefile.am
View file @
8d4b64d6
...
...
@@ -15,6 +15,7 @@ libcameo_la_SOURCES = \
cameo/PortEvent.cpp
\
cameo/RemoteException.cpp
\
cameo/InvalidArgumentException.cpp
\
cameo/UnmanagedApplicationException.cpp
\
cameo/ConnectionTimeout.cpp
\
cameo/SocketException.cpp
\
cameo/PublisherCreationException.cpp
\
...
...
@@ -79,6 +80,7 @@ nobase_include_HEADERS = \
cameo/Server.h
\
cameo/Services.h
\
cameo/InvalidArgumentException.h
\
cameo/UnmanagedApplicationException.h
\
cameo/SocketException.h
\
cameo/StatusEvent.h
\
cameo/ResultEvent.h
\
...
...
src/cameo/Application.cpp
View file @
8d4b64d6
...
...
@@ -39,7 +39,6 @@
#include
"Server.h"
#include
"StarterServerException.h"
#include
"StatusEvent.h"
#include
"StatusEvent.h"
using
namespace
std
;
...
...
@@ -164,6 +163,10 @@ void This::initApplication(int argc, char *argv[]) {
m_managed
=
false
;
m_name
=
nameId
;
m_id
=
initUnmanagedApplication
();
if
(
m_id
==
-
1
)
{
throw
UnmanagedApplicationException
(
string
(
"Maximum number of applications "
)
+
m_name
+
" reached"
);
}
}
if
(
tokens
.
size
()
>=
7
)
{
...
...
src/cameo/Application.h
View file @
8d4b64d6
...
...
@@ -24,6 +24,7 @@
#include
<memory>
#include
<stdint.h>
#include
"InvalidArgumentException.h"
#include
"UnmanagedApplicationException.h"
#include
"SocketException.h"
#include
"ConnectionTimeout.h"
#include
"PublisherCreationException.h"
...
...
src/cameo/UnmanagedApplicationException.cpp
0 → 100644
View file @
8d4b64d6
/*
* Copyright 2015 Institut Laue-Langevin
*
* Licensed under the EUPL, Version 1.1 only (the "License");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
#include
"UnmanagedApplicationException.h"
namespace
cameo
{
UnmanagedApplicationException
::
UnmanagedApplicationException
(
const
std
::
string
&
message
)
:
RemoteException
(
message
)
{
}
}
src/cameo/UnmanagedApplicationException.h
0 → 100644
View file @
8d4b64d6
/*
* Copyright 2015 Institut Laue-Langevin
*
* Licensed under the EUPL, Version 1.1 only (the "License");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
#ifndef CAMEO_UNMANAGEDAPPLICATIONEXCEPTION_H_
#define CAMEO_UNMANAGEDAPPLICATIONEXCEPTION_H_
#include
"RemoteException.h"
namespace
cameo
{
class
UnmanagedApplicationException
:
public
RemoteException
{
public:
UnmanagedApplicationException
(
const
std
::
string
&
message
);
};
}
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment