private static class HttpServer.HttpException
extends java.io.IOException
Modifier and Type | Field and Description |
---|---|
private int |
code_ |
private java.lang.String |
phrase_ |
Constructor and Description |
---|
HttpException(int code,
java.lang.String phrase)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) HttpServer.Response |
createResponse()
Turns this exception into a response object.
|
HttpException(int code, java.lang.String phrase)
code
- 3-digit status codephrase
- status phraseHttpServer.Response createResponse()