Package cn.aprilsoft.TinyAppServer.exception

Examples of cn.aprilsoft.TinyAppServer.exception.HttpException


        } catch (ClientAbortException e) {
            log.info("Client abort connection.");
        } catch (SocketException e) {
            log.info("Client abort connection.");
        } catch (IOException e) {
            throw new HttpException(e);
        }
    }
View Full Code Here


                try {
                    outputFileToResponse(response, file);
                } catch (SocketException e) {
                    throw new ClientAbortException(e);
                } catch (IOException e) {
                    throw new HttpException(e);
                }
            }
        } else {
            log.warn("File '" + file.getName() + "' not exist.");
            HttpErrorMessage.error404(response);
View Full Code Here

                        try {
                            outputFileToResponse(response, file);
                        } catch (SocketException e) {
                            throw new ClientAbortException(e);
                        } catch (IOException e) {
                            throw new HttpException(e);
                        }
                    }
                } else {
                    log.warn("File '" + file + "' not exist.");
                    HttpErrorMessage.error404(response);
View Full Code Here

TOP

Related Classes of cn.aprilsoft.TinyAppServer.exception.HttpException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.