Commit ed56531e authored by Nastuzzi Samy's avatar Nastuzzi Samy
Browse files

Cleaning

RuntimeException to Exception
parent f54de467
......@@ -30,7 +30,7 @@ public class CASConnexion {
this.ticket = "";
if (this.url.isEmpty() || username.isEmpty() || password.isEmpty())
throw new RuntimeException("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 RuntimeException("Not Connected");
throw new Exception("Not Connected");
}
public void disconnect() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment