Package org.astrogrid.samp.httpd
Class HttpServer.HttpException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.astrogrid.samp.httpd.HttpServer.HttpException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- HttpServer
private static class HttpServer.HttpException extends java.io.IOException
Convenience class for representing an error whose content should be returned to the user as an HTTP erro response of some kind.
-
-
Constructor Summary
Constructors Constructor Description HttpException(int code, java.lang.String phrase)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) HttpServer.Response
createResponse()
Turns this exception into a response object.
-
-
-
Method Detail
-
createResponse
HttpServer.Response createResponse()
Turns this exception into a response object.- Returns:
- error response
-
-