Skip to content

Instantly share code, notes, and snippets.

@rschildmeijer
Created October 11, 2010 17:09
Show Gist options
  • Save rschildmeijer/620870 to your computer and use it in GitHub Desktop.
Save rschildmeijer/620870 to your computer and use it in GitHub Desktop.
package org.deftserver.web;
public class HttpException extends RuntimeException {
private final int statusCode;
public HttpException(int statusCode) {
this(statusCode, "");
}
public HttpException(int statusCode, String message) {
super(message);
this.statusCode = statusCode;
}
public int getStatusCode() {
return statusCode;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment