Skip to content

Commit

Permalink
Halt -> HaltException
Browse files Browse the repository at this point in the history
  • Loading branch information
perwendel committed May 8, 2016
1 parent 7f156e5 commit 114d245
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/spark/Service.java
Expand Up @@ -399,7 +399,7 @@ public void handle(Exception exception, Request request, Response response) {
* NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise * NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise
* halt will not work * halt will not work
*/ */
public void halt() { public HaltException halt() {
throw new HaltException(); throw new HaltException();
} }


Expand All @@ -410,7 +410,7 @@ public void halt() {
* *
* @param status the status code * @param status the status code
*/ */
public void halt(int status) { public HaltException halt(int status) {
throw new HaltException(status); throw new HaltException(status);
} }


Expand All @@ -421,7 +421,7 @@ public void halt(int status) {
* *
* @param body The body content * @param body The body content
*/ */
public void halt(String body) { public HaltException halt(String body) {
throw new HaltException(body); throw new HaltException(body);
} }


Expand All @@ -433,7 +433,7 @@ public void halt(String body) {
* @param status The status code * @param status The status code
* @param body The body content * @param body The body content
*/ */
public void halt(int status, String body) { public HaltException halt(int status, String body) {
throw new HaltException(status, body); throw new HaltException(status, body);
} }


Expand Down

0 comments on commit 114d245

Please sign in to comment.