Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hds
flexin
android-app
Commits
ed56531e
Commit
ed56531e
authored
Nov 05, 2017
by
Nastuzzi Samy
Browse files
Cleaning
RuntimeException to Exception
parent
f54de467
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/fr/utc/simde/payutc/tools/CASConnexion.java
View file @
ed56531e
...
...
@@ -30,7 +30,7 @@ public class CASConnexion {
this
.
ticket
=
""
;
if
(
this
.
url
.
isEmpty
()
||
username
.
isEmpty
()
||
password
.
isEmpty
())
throw
new
Runtime
Exception
(
"Elements required"
);
throw
new
Exception
(
"Elements required"
);
HTTPRequest
request
=
new
HTTPRequest
(
this
.
url
+
"v1/tickets/"
);
request
.
addPost
(
"username"
,
username
);
...
...
@@ -39,7 +39,7 @@ public class CASConnexion {
if
(
request
.
post
()
==
201
)
this
.
location
=
request
.
getHeader
(
"Location"
);
else
throw
new
Runtime
Exception
(
"Not Connected"
);
throw
new
Exception
(
"Not Connected"
);
}
public
void
disconnect
()
{
...
...
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